This is an archive of the discontinued LLVM Phabricator instance.

ELF: Respect MEMORY command when specified without a SECTIONS command.
ClosedPublic

Authored by pcc on Mar 1 2023, 5:08 PM.

Details

Summary

We were previously ignoring the MEMORY command unless SECTIONS was also
specified. Fix it.

Diff Detail

Event Timeline

pcc created this revision.Mar 1 2023, 5:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 5:08 PM
pcc requested review of this revision.Mar 1 2023, 5:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 5:08 PM
MaskRay accepted this revision.Mar 1 2023, 9:55 PM
MaskRay added inline comments.
lld/test/ELF/linkerscript/memory-no-sections.test
2

Add a file-level comment about the purpose.

This revision is now accepted and ready to land.Mar 1 2023, 9:55 PM
This revision was automatically updated to reflect the committed changes.
pcc marked an inline comment as done.