[PATCH] D75225: [ELF] Keep orphan section names (.rodata.foo .text.foo) unchanged if !hasSectionsCommand
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 26 20:21:55 PST 2020
MaskRay created this revision.
MaskRay added reviewers: grimar, kees, nickdesaulniers, psmith, ruiu.
Herald added subscribers: llvm-commits, atanasyan, jrtc27, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay edited the summary of this revision.
This behavior matches GNU ld and seems reasonable.
// If a SECTIONS command is not specified
.text.* -> .text
.rodata.* -> .rodata
.init_array.* -> .init_array
A proposed Linux feature CONFIG_FG_KASLR may depend on the GNU ld behavior.
Reword a comment about -z keep-text-section-prefix.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75225
Files:
lld/ELF/Writer.cpp
lld/test/ELF/linkerscript/data-commands-gc.s
lld/test/ELF/linkerscript/icf-output-sections.s
lld/test/ELF/linkerscript/linkorder.s
lld/test/ELF/linkerscript/linkorder2.s
lld/test/ELF/linkerscript/memory3.s
lld/test/ELF/linkerscript/orphan-report.s
lld/test/ELF/linkerscript/symbol-assign-many-passes2.test
lld/test/ELF/mips-npic-call-pic-script.s
lld/test/ELF/shuffle-sections-init-fini.s
lld/test/ELF/text-section-prefix.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75225.246874.patch
Type: text/x-patch
Size: 11156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200227/ab90d55f/attachment.bin>
More information about the llvm-commits
mailing list