aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-12-22 16:52:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-12-22 16:52:19 +0000
commitdf561e02347a904de8dcb3a6f6cb42e10a43bddd (patch)
treebb889de9f4969b45346fd5f8292954c27d13d545 /lib/MC/MachObjectWriter.cpp
parent25bcc9cdc8adcda093bfdf4cf2bda2aaadeb7ee8 (diff)
downloadexternal_llvm-df561e02347a904de8dcb3a6f6cb42e10a43bddd.zip
external_llvm-df561e02347a904de8dcb3a6f6cb42e10a43bddd.tar.gz
external_llvm-df561e02347a904de8dcb3a6f6cb42e10a43bddd.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r--lib/MC/MachObjectWriter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index b746683..cab6452 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/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());
}