summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/ArchHandler.h
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-10-21 23:45:37 +0000
committerNick Kledzik <kledzik@apple.com>2014-10-21 23:45:37 +0000
commit9133f8c76d27c350bfc625319558f2f9cd2f8c03 (patch)
tree853506ab3a411944516ddae784a11f7dd54f49cc /lld/lib/ReaderWriter/MachO/ArchHandler.h
parent41d95947cfc4b143cd0ca922e93cc582a6d10e96 (diff)
downloadbcm5719-llvm-9133f8c76d27c350bfc625319558f2f9cd2f8c03.tar.gz
bcm5719-llvm-9133f8c76d27c350bfc625319558f2f9cd2f8c03.zip
[mach-o] Support missing MH_SUBSECTIONS_VIA_SYMBOLS
All compiler generated mach-o object files are marked with MH_SUBSECTIONS_VIA_SYMBOLS. But hand written assembly files need to opt-in if they are written correctly. The flag means the linker can break up a sections at symbol addresses and dead strip or re-order functions. This change recognizes object files without the flag and marks its atoms as not dead strippable and adds a layout-after chain of references so that the atoms cannot be re-ordered. llvm-svn: 220348
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/ArchHandler.h')
-rw-r--r--lld/lib/ReaderWriter/MachO/ArchHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/ArchHandler.h b/lld/lib/ReaderWriter/MachO/ArchHandler.h
index 2f4a3cb18b9..0dedf81aebd 100644
--- a/lld/lib/ReaderWriter/MachO/ArchHandler.h
+++ b/lld/lib/ReaderWriter/MachO/ArchHandler.h
@@ -134,7 +134,7 @@ public:
const normalized::Relocation &reloc2,
const DefinedAtom *inAtom,
uint32_t offsetInAtom,
- uint64_t fixupAddress, bool swap,
+ uint64_t fixupAddress, bool swap, bool scatterable,
FindAtomBySectionAndAddress atomFromAddress,
FindAtomBySymbolIndex atomFromSymbolIndex,
Reference::KindValue *kind,
OpenPOWER on IntegriCloud