[PATCH] D83549: [ELF] Do not force bringing out symbols passed by -init and -fini.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 10 10:26:42 PDT 2020


MaskRay added a subscriber: aaronpuchert.
MaskRay added a comment.

I think this is about different expectation of `_init` and `_fini` behaviors.

@aaronpuchert Your comment https://bugzilla.opensuse.org/show_bug.cgi?id=1155108#c10 "However, it's actually a bug in all three linkers. It has been fixed in lld just today [1]" made me wonder whether https://bugs.llvm.org/show_bug.cgi?id=43927 was really a linker bug.

I need an LLD reproduce file (obtained via `LLD_REPRODUCE=/tmp/rep.tar ...` or `-Wl,--reproduce=/tmp/rep.tar` to under the matter better. An alternative fix to @ikudrin's problem is to revert D69985 <https://reviews.llvm.org/D69985>
openSUSE's OpenMP problem probably should be fixed by adding `-u _init -u _fini` instead of relying on the linker retaining the bitcode defined symbols.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83549/new/

https://reviews.llvm.org/D83549





More information about the llvm-commits mailing list