[PATCH] D23603: [ELF] - Linkerscript: merge section attributes when create output section.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 17 04:18:20 PDT 2016
grimar created this revision.
grimar added a reviewer: ruiu.
grimar added subscribers: llvm-commits, grimar, davide, evgeny777.
If there are input sections with the same name but with different attributes
and linker script layout is used then we create single output section.
What is wrong is that we create an output section based on the first input
section's attributes. This may make a wrong output section attributes,
patch fixes the issue.
https://reviews.llvm.org/D23603
Files:
ELF/LinkerScript.cpp
ELF/OutputSections.cpp
ELF/OutputSections.h
test/ELF/linkerscript/linkerscript-phdrs.s
test/ELF/linkerscript/linkerscript-repsection-va.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23603.68333.patch
Type: text/x-patch
Size: 4327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160817/efdfba22/attachment.bin>
More information about the llvm-commits
mailing list