[PATCH] D42748: [ELF] Don't create a .dynamic section when linking with -Bstatic
Ed Schouten via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 31 23:33:56 PST 2018
ed added a comment.
This effectively reverts https://reviews.llvm.org/rL295240, right? If so, I'd personally oppose to this change.
The downside of statically linked executables is that by default, they don't contain a dynsym section. This means that no symbol table is mapped in memory, meaning that such processes are not able of printing their own symbol names (e.g., in backtraces due to uncaught exceptions). In https://reviews.llvm.org/rL295240, we added support for passing in `--export-dynamic` to force the creation of dynsym, PT_DYNAMIC, etc. to overcome this limitation. That this deviates from GNU ld is not a bug.
Does this only affect FreeBSD/mips or any architecture supported by FreeBSD? If it's just MIPS, why?
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D42748
More information about the llvm-commits
mailing list