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

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 14:18:37 PDT 2016


pcc added a comment.

> This matches the gold and bfd behaviour?


bfd exports foo and bar. gold exports foo, bar and bar2.

> I would actually expect the .so to keep bar2 alive. After all, if a symbol in a .so can force us to export a symbol from an executable, why shouldn't it for us to keep it alive?


That is what I am testing with the definition of bar. In this case, we are testing that we are removing bar2 from dynsym because it ends up being an unused reference.


http://reviews.llvm.org/D19490





More information about the llvm-commits mailing list