summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2018-04-12 13:16:12 +0000
committerrobert <robert@openbsd.org>2018-04-12 13:16:12 +0000
commitf8a41d8d61decd209828f3312165e80774fcfb70 (patch)
tree3bcd1b5595db29a2afea4e13d28c7307225ffc6b
parentUse the current reference instead of incrementing `f_count' manually and (diff)
downloadwireguard-openbsd-f8a41d8d61decd209828f3312165e80774fcfb70.tar.xz
wireguard-openbsd-f8a41d8d61decd209828f3312165e80774fcfb70.zip
keep the STT_FILE symbol in the table so that we know what file
was used to compile and object ok kettenis@
-rw-r--r--gnu/llvm/tools/lld/ELF/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/llvm/tools/lld/ELF/Writer.cpp b/gnu/llvm/tools/lld/ELF/Writer.cpp
index 3b21394b7b8..4ff5e15f43c 100644
--- a/gnu/llvm/tools/lld/ELF/Writer.cpp
+++ b/gnu/llvm/tools/lld/ELF/Writer.cpp
@@ -487,7 +487,7 @@ template <class ELFT> void Writer<ELFT>::run() {
static bool shouldKeepInSymtab(SectionBase *Sec, StringRef SymName,
const Symbol &B) {
- if (B.isFile() || B.isSection())
+ if (B.isSection())
return false;
// If sym references a section in a discarded group, don't keep it.