[PATCH] D22683: [ELF] Symbol assignment within input section list
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 27 09:07:05 PDT 2016
evgeny777 updated this revision to Diff 65753.
evgeny777 added a comment.
Review updated.
Changes:
1. If section contains only symbols those symbols are added as absolute. This is what gold linker does,
and also allows to pass Davide test (linkerscript-provide-in-section.s)
2. Symbols declared inside output section definition are added as virtual input sections to corresponding output sections.
After assignOffsets() is called from Writer::finalizeSections(), those virtual section offsets (OutSecOff) are equal to values of dot symbol.
https://reviews.llvm.org/D22683
Files:
ELF/LinkerScript.cpp
ELF/LinkerScript.h
ELF/Writer.cpp
test/ELF/linkerscript/linkerscript-symbols-synthetic.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22683.65753.patch
Type: text/x-patch
Size: 13708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160727/4511f02d/attachment.bin>
More information about the llvm-commits
mailing list