[all-commits] [llvm/llvm-project] 9e33c0: [ELF] Keep orphan section names (.rodata.foo .text...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Mar 23 10:30:18 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9e33c096476ab5e02ab1c8442cc3cb4e32e29f17
https://github.com/llvm/llvm-project/commit/9e33c096476ab5e02ab1c8442cc3cb4e32e29f17
Author: Fangrui Song <maskray at google.com>
Date: 2020-03-23 (Mon, 23 Mar 2020)
Changed paths:
M lld/ELF/Writer.cpp
M lld/test/ELF/linkerscript/data-commands-gc.s
M lld/test/ELF/linkerscript/icf-output-sections.s
M lld/test/ELF/linkerscript/linkorder.s
M lld/test/ELF/linkerscript/linkorder2.s
M lld/test/ELF/linkerscript/memory3.s
M lld/test/ELF/linkerscript/orphan-report.s
M lld/test/ELF/linkerscript/symbol-assign-many-passes2.test
M lld/test/ELF/mips-npic-call-pic-script.s
M lld/test/ELF/shuffle-sections-init-fini.s
M lld/test/ELF/text-section-prefix.s
Log Message:
-----------
[ELF] Keep orphan section names (.rodata.foo .text.foo) unchanged if !hasSectionsCommand
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 and a comment about
CommonSection (deleted by rL286234).
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D75225
More information about the All-commits
mailing list