diff options
| -rw-r--r-- | lld/ELF/Writer.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 8927ea7d0b6..0ee7a46d68f 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1208,14 +1208,7 @@ OutputSectionFactory<ELFT>::createKey(InputSectionBase<ELFT> *C, if (isa<MergeInputSection<ELFT>>(C)) Alignment = std::max(H->sh_addralign, H->sh_entsize); - // GNU as can give .eh_frame section type SHT_PROGBITS or SHT_X86_64_UNWIND - // depending on the construct. We want to canonicalize it so that - // there is only one .eh_frame in the end. uint32_t Type = H->sh_type; - if (Type == SHT_PROGBITS && Config->EMachine == EM_X86_64 && - isa<EHInputSection<ELFT>>(C)) - Type = SHT_X86_64_UNWIND; - return SectionKey<ELFT::Is64Bits>{OutsecName, Type, Flags, Alignment}; } |

