diff options
author | Moshe Berman <mosheberman@users.noreply.github.com> | 2023-02-17 17:18:14 +0000 |
---|---|---|
committer | James Henderson <james.henderson@sony.com> | 2023-02-17 17:59:20 +0000 |
commit | bc6e10c9efca78cda350b6705de27728d142c0b0 (patch) | |
tree | 9a3639c4d62273a6d25cd2b5b177983c16a2acb7 /llvm/unittests/ADT/StringMapTest.cpp | |
parent | 998ad085e865f2e5acc589d6bee0e3379042da2e (diff) | |
download | llvm-bc6e10c9efca78cda350b6705de27728d142c0b0.zip llvm-bc6e10c9efca78cda350b6705de27728d142c0b0.tar.gz llvm-bc6e10c9efca78cda350b6705de27728d142c0b0.tar.bz2 |
[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
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
0 files changed, 0 insertions, 0 deletions