Hi Lang
This adds support for -headerpad_max_install_names which pads the header by enough bytes so that the dylib ID and loaded dylib paths can all be extended to MAXPATHLEN.
Thanks,
Pete
Paths
| Differential D15943
Add support for headerpad_max_install_names cmdline option Needs ReviewPublic Authored by pete on Jan 6 2016, 5:18 PM.
Details
Summary Hi Lang This adds support for -headerpad_max_install_names which pads the header by enough bytes so that the dylib ID and loaded dylib paths can all be extended to MAXPATHLEN. Thanks,
Diff Detail Event Timelinepete updated this object.
Comment Actions Updated to no longer pass the context to functions, but instead put a padHeaderPaths bool inside NormalizedFile.
Revision Contents
Diff 44238 include/lld/ReaderWriter/MachOLinkingContext.h
lib/Driver/DarwinLdDriver.cpp
lib/Driver/DarwinLdOptions.td
lib/ReaderWriter/MachO/MachOLinkingContext.cpp
lib/ReaderWriter/MachO/MachONormalizedFile.h
lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
test/mach-o/headerpad_max_install_names.yaml
|
This is a design change. writeBinary() has only depended on the NormalizedFile object - not the LinkingContext. That is, for extra info like this, we add a new field to NormalizedFile.