[PATCH] D19490: ELF: Teach section GC to also GC shared symbols.
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 14:06:46 PDT 2016
rafael added inline comments.
================
Comment at: test/ELF/gc-sections-shared.s:9
@@ +8,3 @@
+# CHECK: T bar
+# CHECK-NOT: bar2
+# CHECK: T foo
----------------
This matches the gold and bfd behaviour?
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 similar to us not gcing section that contribute to the dynamic table of a .so.
http://reviews.llvm.org/D19490
More information about the llvm-commits
mailing list