diff options
author | Iain Sandoe <iain@codesourcery.com> | 2014-01-08 10:22:54 +0000 |
---|---|---|
committer | Iain Sandoe <iain@codesourcery.com> | 2014-01-08 10:22:54 +0000 |
commit | 618def651b59bd42c05bbd91d825af2fb2145683 (patch) | |
tree | 36555c3765cf6201f06ca08bb7506eb29eb7d609 /llvm/lib/MC/MCAsmInfo.cpp | |
parent | 44946439e1d81f3e679a4fa60da6b44f00f4636e (diff) | |
download | bcm5719-llvm-618def651b59bd42c05bbd91d825af2fb2145683.tar.gz bcm5719-llvm-618def651b59bd42c05bbd91d825af2fb2145683.zip |
[patch] Adjust behavior of FDE cross-section relocs for targets that don't support abs-differences.
Modern versions of OSX/Darwin's ld (ld64 > 97.17) have an optimisation present that allows the back end to omit relocations (and replace them with an absolute difference) for FDE some text section refs.
This patch allows a backend to opt-in to this behaviour by setting "DwarfFDESymbolsUseAbsDiff". At present, this is only enabled for modern x86 OSX ports.
test changes by David Fang.
llvm-svn: 198744
Diffstat (limited to 'llvm/lib/MC/MCAsmInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index 466a94d8e87..2c19e8511b3 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -84,6 +84,7 @@ MCAsmInfo::MCAsmInfo() { SupportsDebugInformation = false; ExceptionsType = ExceptionHandling::None; DwarfUsesRelocationsAcrossSections = true; + DwarfFDESymbolsUseAbsDiff = false; DwarfRegNumForCFI = false; NeedsDwarfSectionOffsetDirective = false; UseParensForSymbolVariant = false; |