[all-commits] [llvm/llvm-project] 137078: [llvm-objcopy] Fix strip-all-gnu test
Anton Sidorenko via All-commits
all-commits at lists.llvm.org
Fri Feb 3 02:09:20 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 137078de13584f467bf48b4fca41e34781211773
https://github.com/llvm/llvm-project/commit/137078de13584f467bf48b4fca41e34781211773
Author: Anton Sidorenko <anton.sidorenko at syntacore.com>
Date: 2023-02-03 (Fri, 03 Feb 2023)
Changed paths:
M llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
Log Message:
-----------
[llvm-objcopy] Fix strip-all-gnu test
Originally the test has a bug: in the input YAML `.symtab.dyn` section has a type
repeated twice with different values (SHT_SYMTAB and SHT_NOBITS). YAML parser
took SHT_NOBITS as a type of the section, so the test wasn't checking the desired
case.
This patch changes the test to verify that a section with SHT_SYMTAB type and
SHF_ALLOC flag is not removed when --strip-all-gnu flag present.
Differential Revision: https://reviews.llvm.org/D143086
More information about the All-commits
mailing list