[PATCH] D59275: [ELF] Do not emit weak-undef symbols in .dynsym under -pie --no-dynamic-linker.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 13:42:40 PDT 2019
ruiu added inline comments.
================
Comment at: lld/ELF/Symbols.cpp:270-271
return false;
+ if (isUndefWeak() && Config->Pie && Config->DynamicLinker.empty())
+ return false;
if (!isDefined())
----------------
This really needs comment. Also, why do you have to check if `DynamicLinker` was not set? In lld, `--dynamic-linker` is used only for setting the name of the dynamic linker. Shouldn't this be `--static`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59275/new/
https://reviews.llvm.org/D59275
More information about the llvm-commits
mailing list