[PATCH] D19490: ELF: Teach section GC to also GC shared symbols.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 14:24:58 PDT 2016


On 25 April 2016 at 17:18, Peter Collingbourne <peter at pcc.me.uk> wrote:
> pcc added a comment.
>
>> This matches the gold and bfd behaviour?
>
>
> bfd exports foo and bar. gold exports foo, bar and bar2.

Would you be OK with agreeing with gold on this? The logic as I see is

* The only reason we would export bar2 without --gc-sections is that
we noticed a .so using it.
* Anything that can put a symbol in the dynamic symbol table can keep
the section that defines it alive.

Cheers,
Rafael


More information about the llvm-commits mailing list