[ELF][llvm-objcopy] Reject duplicate SHT_SYMTAB sections
The gABI prohibits multiple SH_SYMTAB sections. As a result, llvm-objcopy was crashing in SymbolTableSection::removeSymbols(). This patch fixes the issue by emitting an error if multiple SH_SYMTAB sections are encountered when building an ELF object. Fixes: https://github.com/llvm/llvm-project/issues/60448 Differential Revision: https://reviews.llvm.org/D143508
Loading
Please sign in to comment