diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-03-06 18:48:18 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-03-06 18:48:18 +0000 |
commit | 692b2f88d3e99a231bd6f14f359b682cdf94d61e (patch) | |
tree | 1b4da0586aba1d93f6d76ecc9158296c4829c95b /clang/lib/CodeGen/ConstantInitBuilder.cpp | |
parent | 3bbee79d9e690aee24c4f6388e83020857bb554d (diff) | |
download | llvm-692b2f88d3e99a231bd6f14f359b682cdf94d61e.zip llvm-692b2f88d3e99a231bd6f14f359b682cdf94d61e.tar.gz llvm-692b2f88d3e99a231bd6f14f359b682cdf94d61e.tar.bz2 |
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
Diffstat (limited to 'clang/lib/CodeGen/ConstantInitBuilder.cpp')
0 files changed, 0 insertions, 0 deletions