From 14f5ace587d75ff40a459bdd44cbcaa85c31ac1c Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 22 Oct 2020 22:42:09 +0900 Subject: [PATCH] temporary --- input_files.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/input_files.cc b/input_files.cc index 02c11165..c303b855 100644 --- a/input_files.cc +++ b/input_files.cc @@ -37,6 +37,9 @@ void ObjectFile::initialize_sections() { for (int i = 0; i < elf_sections.size(); i++) { const ELF64LE::Shdr &shdr = elf_sections[i]; + if ((shdr.sh_flags & SHF_EXCLUDE) && !(shdr.sh_flags & SHF_ALLOC)) + continue; + switch (shdr.sh_type) { case SHT_GROUP: { // Get the signature of this section group.