This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] Add missing program header parsing to OVERLAY
ClosedPublic

Authored by peter.smith on May 12 2023, 6:43 AM.

Details

Summary

In D72756 the change to add INPUT_SECTION_FLAGS inadvertantly removed the line to parse the program header assignment information for OutputSections within an OVERLAY. This change adds back the missing line and adds a test for it. The missing line is easy to spot in D72756 at a similar location.

Diff Detail

Event Timeline

peter.smith created this revision.May 12 2023, 6:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 6:43 AM
peter.smith requested review of this revision.May 12 2023, 6:43 AM
MaskRay accepted this revision.May 12 2023, 8:35 PM

Looks great!

lld/test/ELF/linkerscript/overlay-phdr.test
27

.out.small and .text lines can use # CHECK-NEXT:

This revision is now accepted and ready to land.May 12 2023, 8:35 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2023, 2:22 AM
peter.smith added inline comments.May 15 2023, 11:09 AM
lld/test/ELF/linkerscript/overlay-phdr.test
27

Apologies missed this first time round (applied in follow up commit ca39168a7c1cb8299786d697baaafcda9cf23e60)