diff options
author | Peter Smith <peter.smith@arm.com> | 2023-05-11 12:00:19 +0100 |
---|---|---|
committer | Peter Smith <peter.smith@arm.com> | 2023-05-15 10:04:33 +0100 |
commit | e16af8a28169172a6cf479ccbc03e145d4590db1 (patch) | |
tree | c84d1390d565721fcee864db71c01e3a9fdc111c /lld/ELF | |
parent | 83768e66108f583dcb2807a04662cfb9709ab2cf (diff) | |
download | llvm-e16af8a28169172a6cf479ccbc03e145d4590db1.tar.gz |
[LLD][ELF] Add missing program header parsing to OVERLAY
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.
Differential Revision: https://reviews.llvm.org/D150445
Diffstat (limited to 'lld/ELF')
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index d5f2e1fd6117..396d27d9357a 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -898,6 +898,7 @@ OutputDesc *ScriptParser::readOverlaySectionDescription() { osd->osec.commands.push_back( readInputSectionRules(next(), withFlags, withoutFlags)); } + osd->osec.phdrs = readOutputSectionPhdrs(); return osd; } |