diff options
author | Tim Northover <tnorthover@apple.com> | 2014-09-10 10:39:57 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-09-10 10:39:57 +0000 |
commit | af3075b93f9d8a9adc8d366134568205ab2c9208 (patch) | |
tree | 65370f74fcd7eed1751dbc35a126883e9ca36d42 /lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp | |
parent | 75ee6b4302b8065a203f0b2fdbddcff52985f0e1 (diff) | |
download | bcm5719-llvm-af3075b93f9d8a9adc8d366134568205ab2c9208.tar.gz bcm5719-llvm-af3075b93f9d8a9adc8d366134568205ab2c9208.zip |
[mach-o]: implement -image_base option on Darwin.
As suggested by Nick, this will make __unwind_info implementation more natural,
and it'd have to be done at some point anyway.
llvm-svn: 217486
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp')
-rw-r--r-- | lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp index 601a86c8b1d..faefb3d2cb7 100644 --- a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp +++ b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp @@ -133,11 +133,10 @@ bool MachOLinkingContext::isThinObjectFile(StringRef path, Arch &arch) { MachOLinkingContext::MachOLinkingContext() : _outputMachOType(MH_EXECUTE), _outputMachOTypeStatic(false), - _doNothing(false), _pie(false), - _arch(arch_unknown), _os(OS::macOSX), _osMinVersion(0), - _pageZeroSize(0), _pageSize(4096), _compatibilityVersion(0), - _currentVersion(0), _deadStrippableDylib(false), _printAtoms(false), - _testingFileUsage(false), _keepPrivateExterns(false), + _doNothing(false), _pie(false), _arch(arch_unknown), _os(OS::macOSX), + _osMinVersion(0), _pageZeroSize(0), _pageSize(4096), _baseAddress(0), + _compatibilityVersion(0), _currentVersion(0), _deadStrippableDylib(false), + _printAtoms(false), _testingFileUsage(false), _keepPrivateExterns(false), _archHandler(nullptr), _exportMode(ExportMode::globals) {} MachOLinkingContext::~MachOLinkingContext() {} |