diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-11-12 19:25:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-11-12 19:25:31 +0000 |
commit | 2418469b6009f2587685acee5d343a5826b7b84c (patch) | |
tree | ef4afea1152fdd41036aa9522f6e0596f424d667 /contrib | |
parent | 6abe97c0140d54d3520c30517b2bdebc3de92a62 (diff) |
Notes
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/llvm-project/lld/ELF/InputSection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/lld/ELF/InputSection.h b/contrib/llvm-project/lld/ELF/InputSection.h index 112c6ab49a38d..2acb9f1a88327 100644 --- a/contrib/llvm-project/lld/ELF/InputSection.h +++ b/contrib/llvm-project/lld/ELF/InputSection.h @@ -391,7 +391,8 @@ private: }; inline bool isDebugSection(const InputSectionBase &sec) { - return sec.name.startswith(".debug") || sec.name.startswith(".zdebug"); + return (sec.flags & llvm::ELF::SHF_ALLOC) == 0 && + (sec.name.startswith(".debug") || sec.name.startswith(".zdebug")); } // The list of all input sections. |