This is an archive of the discontinued LLVM Phabricator instance.

Support -headerpad cmdline option
Needs ReviewPublic

Authored by pete on Jan 7 2016, 10:14 AM.

Details

Reviewers
lhames
Summary

Hi Lang

(Note this depends on http://reviews.llvm.org/D15943).

This extends the header pad generation we have to also support the -headerpad *size* option.

Similarly to ld64, if both -headerpad_max_install_names and -headerpad are passed, then we take the maximum of the two.

Comments welcome.

Thanks,
Pete

Diff Detail

Event Timeline

pete updated this revision to Diff 44226.Jan 7 2016, 10:14 AM
pete retitled this revision from to Support -headerpad cmdline option.
pete updated this object.
pete added a reviewer: lhames.
pete added a project: lld.
pete added subscribers: kledzik, llvm-commits.
pete updated this revision to Diff 44228.Jan 7 2016, 10:17 AM

Updated test case to include tests for -headerpad combined with -headerpad_max_install_names

pete updated this revision to Diff 44250.Jan 7 2016, 12:40 PM

Updated given that D15943 no longer passes a context to writeBinary