summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/sections-gc2.s
Commit message (Collapse)AuthorAgeFilesLines
* [LLD][ELF] - Update tests after r352366.George Rimar2019-01-281-1/+1
| | | | | | | r352366 "[llvm-objdump] - Print LMAs when dumping section headers." changed the format of llvm-objdump output. We have to update the LLD tests. llvm-svn: 352372
* Fully precise gc handling of __start and __stop symbols.Rafael Espindola2017-03-061-1/+1
| | | | | | | | | | | | | | | This puts us at parity with bfd, which could already gc this case. I noticed the sections not being gced when linking a modified freebsd kernel. A section that was not gced and not mentioned in the linker script would end up breaking the expected layout. Since fixing the gc is relatively simple and an improvement, that seems better than trying to hack the orphan placement code. There are 173 input section in the entire link whose names are valid C identifiers, so this is probably not too performance critical. llvm-svn: 297049
* Simplify test by producing an executable.Rafael Espindola2017-03-021-11/+5
| | | | llvm-svn: 296786
* Make gc a bit more aggressive.Rafael Espindola2017-03-021-0/+37
We were not gcing any section whose name was a C identifier. Both gold and bfd only keep those if they are used. To avoid having to create the __start/__stop symbols early or doing string lookups in resolvedReloc, this patch just looks for undefined symbols __start/__stop to decide if a section is needed or not. llvm-svn: 296723
OpenPOWER on IntegriCloud