diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-12-22 16:52:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-12-22 16:52:19 +0000 |
commit | 45140d2efccfae3ea4330a4fe0ade502ae9ec1cc (patch) | |
tree | 584460b6ec59c4920d0ed086a3588b9a3d24527e /llvm/lib/MC | |
parent | 11617c8666bdfb33f1a0ea700133999d1d0f57da (diff) | |
download | bcm5719-llvm-45140d2efccfae3ea4330a4fe0ade502ae9ec1cc.tar.gz bcm5719-llvm-45140d2efccfae3ea4330a4fe0ade502ae9ec1cc.zip |
MC/Mach-O/ARM: We always use the SECTDIFF reloc type on ARM, which is
esp. important given that the LOCAL_SECTDIFF enumeration got redefined.
llvm-svn: 122412
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MachObjectWriter.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index b74668316ee..cab64521afb 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -827,12 +827,7 @@ public: "' can not be undefined in a subtraction expression"); // Select the appropriate difference relocation type. - // - // Note that there is no longer any semantic difference between these two - // relocation types from the linkers point of view, this is done solely - // for pedantic compatibility with 'as'. - Type = A_SD->isExternal() ? (unsigned)macho::RIT_Difference : - (unsigned)macho::RIT_Generic_LocalDifference; + Type = macho::RIT_Difference; Value2 = getSymbolAddress(B_SD, Layout); FixedValue -= getSectionAddress(B_SD->getFragment()->getParent()); } |