HomePhabricator

Fully precise gc handling of __start and __stop symbols.

Authored by rafael on Mar 6 2017, 10:48 AM.

Description

Fully precise gc handling of start and stop symbols.

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

Details

Committed
rafaelMar 6 2017, 10:48 AM
Parents
rG3bbee79d9e69: [InstSimplify] add tests for vector div/rem with UB potential; NFC
Branches
Unknown
Tags
Unknown