[PATCH] D95199: [ELF] Write output sections in PT_LOAD segment order
Patrick Oppenlander via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 21:42:47 PST 2021
pattop updated this revision to Diff 321657.
pattop added a comment.
Maintain section address order as much as possible when assigning file offsets.
This resolves most file offset adjustments in tests previously required due to
reordering of empty sections.
The logic in assignFileOffsets could possibly be cleaner but I can't quite see
how right now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95199/new/
https://reviews.llvm.org/D95199
Files:
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/implicit-program-header.test
lld/test/ELF/linkerscript/out-of-order-sections.s
lld/test/ELF/partition-notes.s
lld/test/ELF/partition-synthetic-sections.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95199.321657.patch
Type: text/x-patch
Size: 5856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210205/50445f89/attachment.bin>
More information about the llvm-commits
mailing list