start_/_end_<section-name> symbols and such ones like :
preinit_array_start/end
init_array_start/end
fini_array_start/end
should not be created by linker when creating relocatable files.
Patch fixes that, testcase is provided.
Paths
| Differential D17774
[ELF] - do not create special symbols when creating relocatable output ClosedPublic Authored by grimar on Mar 1 2016, 9:50 AM.
Details Summary start_/_end_<section-name> symbols and such ones like : should not be created by linker when creating relocatable files.
Diff Detail Event Timelineruiu edited edge metadata. Comment ActionsLGTM
This revision is now accepted and ready to land.Mar 1 2016, 9:58 AM
Closed by commit rL262366: [ELF] - do not create special symbols when creating relocatable output (authored by grimar). · Explain WhyMar 1 2016, 11:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 49504 ELF/Writer.cpp
test/ELF/relocatable-symbols.s
|
Instead of here, please add "if (Config->Relocatable) return;" at beginning of addStartEndSymbols.