diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2018-04-12 13:16:13 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2018-04-12 13:16:13 +0000 |
commit | 6c16f8bd5861ce3954c1f26afd886dd16d126fff (patch) | |
tree | ec13126dd1733ef596f3baa9de0307dd0d71c7a4 /gnu/llvm | |
parent | 6854508a87ff58274cab0ef00e3cc9c3d1a83826 (diff) |
keep the STT_FILE symbol in the table so that we know what file
was used to compile and object
ok kettenis@
Diffstat (limited to 'gnu/llvm')
-rw-r--r-- | gnu/llvm/tools/lld/ELF/Writer.cpp | 2 |
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. |