ObjectFileMachO::SetLoadAddress() takes a slide or base load address and applies the correct address difference to each section in the Target. It only makes these changes to "loadable" sections and one of the heuristics incorrectly disqualified a DATA segment that has no on-disk content, e.g. a BSS-only DATA segment. A DATA segment is allowed to have no file size; this is a small patch to SectionIsLoadable to recognize that. And add a quick test case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo