[PATCH] D23925: [ELF] Default to entry address 0x0 in case start symbol is not defined and entry point is not specified in command line
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 08:03:16 PDT 2016
evgeny777 removed rL LLVM as the repository for this revision.
evgeny777 updated this revision to Diff 70402.
evgeny777 added a comment.
Diff updated. Here I'm not adding entry symbol to symtab unless explicitly told. Two extra things done:
- If entry symbol is being inserted then IsUsedInRegularObj is always set to true to avoid incorrect LTO optimizations
- Extra checks are needed in addLazyArchive and addLazyObject to always create object file if it contains start symbol
The position of _start symbol in symbol table is arbitrary now, that's why some test cases were modified.
https://reviews.llvm.org/D23925
Files:
ELF/Driver.cpp
ELF/SymbolTable.cpp
test/ELF/arm-gnu-ifunc.s
test/ELF/edata-etext.s
test/ELF/entry.s
test/ELF/linkerscript/symbols-synthetic.s
test/ELF/reproduce-windows.s
test/ELF/resolution.s
test/ELF/undef-start.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23925.70402.patch
Type: text/x-patch
Size: 9863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160906/87ba204f/attachment.bin>
More information about the llvm-commits
mailing list