Details
- Reviewers
int3 - Group Reviewers
Restricted Project - Commits
- rG145ce86dba6e: [lld-macho] handle option -headerpad_max_install_names
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/MachO/Writer.cpp | ||
---|---|---|
380 | nit: make 1024 a named constant nit 2: I assume we are checking for MH_DYLIB here because the LC_DYLIB_ID command also contains an install name. Would be good to have a comment. Also -- don't we need to allocate space for the LC_REEXPORT_DYLIB commands as well? | |
381–382 | would be nice to have a test where the -headerpad argument is higher than the max install names size | |
lld/test/MachO/headerpad.s | ||
64 | ultra nit: delete one space for alignment |
lld/MachO/Writer.cpp | ||
---|---|---|
380 | Yes to all. |
- Count instances of LCDylib inside constructor rather than at construction sites
- Elide uninteresting columns from llvm-objdump --all-headers output to reduce length and noise of the lines
- Add tests for all types of LCDylib: self, load, reexport
- Add tests for null-effect of -headerpad_max_install_names when no LCDylibs are present
- Add test for -headerpad N exceeding size of -headerpad_max_install_names
it would be nice to have some comments in the test indicating what behaviors are being tested... PADOVR and PADx aren't the most descriptive :)
clang-tidy: warning: invalid case style for variable 'MACOS_MAXPATHLEN' [readability-identifier-naming]
not useful