diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2014-01-27 01:21:02 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2014-01-27 01:21:02 +0000 |
| commit | b11964707ca24b4bfc4c39f3c6c42ef9c2ef800b (patch) | |
| tree | 84862e61f7c57f4025951ca97e65a6eb0ab73e8c /lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp | |
| parent | af7fbd8cf426f74239bd6d30b52beda7524f46c1 (diff) | |
| download | bcm5719-llvm-b11964707ca24b4bfc4c39f3c6c42ef9c2ef800b.tar.gz bcm5719-llvm-b11964707ca24b4bfc4c39f3c6c42ef9c2ef800b.zip | |
[ELF] Make changes to all the targets supported currently
X86_64,X86,PPC,Hexagon,Mips
No change in functionality.
llvm-svn: 200177
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp index 4e6d1ead4f2..22f10f7f74b 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp @@ -264,19 +264,19 @@ error_code HexagonTargetRelocationHandler::applyRelocation( break; case R_HEX_GPREL16_0: relocHexGPRELN(location, relocVAddress, targetVAddress, ref.addend(), - _targetLayout.getSDataSection()->virtualAddr(), 0); + _hexagonTargetLayout.getSDataSection()->virtualAddr(), 0); break; case R_HEX_GPREL16_1: relocHexGPRELN(location, relocVAddress, targetVAddress, ref.addend(), - _targetLayout.getSDataSection()->virtualAddr(), 1); + _hexagonTargetLayout.getSDataSection()->virtualAddr(), 1); break; case R_HEX_GPREL16_2: relocHexGPRELN(location, relocVAddress, targetVAddress, ref.addend(), - _targetLayout.getSDataSection()->virtualAddr(), 2); + _hexagonTargetLayout.getSDataSection()->virtualAddr(), 2); break; case R_HEX_GPREL16_3: relocHexGPRELN(location, relocVAddress, targetVAddress, ref.addend(), - _targetLayout.getSDataSection()->virtualAddr(), 3); + _hexagonTargetLayout.getSDataSection()->virtualAddr(), 3); break; case R_HEX_16_X: case R_HEX_12_X: @@ -296,45 +296,52 @@ error_code HexagonTargetRelocationHandler::applyRelocation( break; case R_HEX_GOTREL_32: relocHexGOTREL_32(location, relocVAddress, targetVAddress, ref.addend(), - _targetHandler.getGOTSymAddr()); + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOTREL_LO16: relocHexGOTREL_HILO16(location, relocVAddress, targetVAddress, ref.addend(), - _targetHandler.getGOTSymAddr()); + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOTREL_HI16: relocHexGOTREL_HILO16(location, relocVAddress, targetVAddress, ref.addend(), - _targetHandler.getGOTSymAddr(), 16); + _hexagonTargetLayout.getGOTSymAddr(), 16); break; case R_HEX_GOT_LO16: - relocHexGOTLO16(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOTLO16(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOT_HI16: - relocHexGOTHI16(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOTHI16(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOT_32: - relocHexGOT32(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOT32(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOT_16: - relocHexGOT16(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOT16(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOT_32_6_X: - relocHexGOT32_6_X(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOT32_6_X(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOT_16_X: - relocHexGOT16_X(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOT16_X(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOT_11_X: - relocHexGOT11_X(location, targetVAddress, _targetHandler.getGOTSymAddr()); + relocHexGOT11_X(location, targetVAddress, + _hexagonTargetLayout.getGOTSymAddr()); break; case R_HEX_GOTREL_32_6_X: relocHexGOTRELSigned(location, relocVAddress, targetVAddress, ref.addend(), - _targetHandler.getGOTSymAddr(), 6); + _hexagonTargetLayout.getGOTSymAddr(), 6); break; case R_HEX_GOTREL_16_X: case R_HEX_GOTREL_11_X: - relocHexGOTRELUnsigned(location, relocVAddress, targetVAddress, ref.addend(), - _targetHandler.getGOTSymAddr()); + relocHexGOTRELUnsigned(location, relocVAddress, targetVAddress, + ref.addend(), _hexagonTargetLayout.getGOTSymAddr()); break; default : { @@ -349,4 +356,4 @@ error_code HexagonTargetRelocationHandler::applyRelocation( return error_code::success(); } -
\ No newline at end of file + |

