[ELF] - do not create special symbols when creating relocatable output
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Mar 2016 19:12:35 +0000 (19:12 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 1 Mar 2016 19:12:35 +0000 (19:12 +0000)
commitc1034a85d08d61bd344b3923fdaaf7903fc329e4
tree83da35f9c7bbde23de20d5d354711789835e1eab
parent45ebda4278681e7085e7f2751a3d8f9773e47d49
[ELF] - do not create special symbols when creating relocatable output

__start_/__end_ <section-name> symbols and other specials like:
preinit_array_start/end
init_array_start/end
fini_array_start/end

should not be created by linker when creating relocatable files.

Differential revision: http://reviews.llvm.org/D17774

llvm-svn: 262366
lld/ELF/Writer.cpp
lld/test/ELF/relocatable-symbols.s [new file with mode: 0644]