diff options
| author | Mark Wielaard <[email protected]> | 2019-01-24 16:00:49 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2019-01-24 16:06:29 +0100 |
| commit | 4540ea98ce3314c84273f5c9cbb8b774f1463dc4 (patch) | |
| tree | d6f0c5cbfae29944155a7b458e0765ed62a52530 /src/strip.c | |
| parent | a17c2c0917901ffa542ac4d3e327d46742219e04 (diff) | |
strip: Fix check test for SHN_XINDEX symbol.
The check for whether a symbol used the extended section table was
wrong causing the run-strip-test-many.sh testcase to declare the
testfile was an illformed file.
Fixing this exposed a strict elfutils check for the '.shstrtab'
section having this exact name and a SHT_STRTAB type. This might
be a little too strict, but easily worked around by changing the
name of the "old" shstrtab section in the addsections program.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/strip.c')
| -rw-r--r-- | src/strip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strip.c b/src/strip.c index 15180737..a73009d9 100644 --- a/src/strip.c +++ b/src/strip.c @@ -1944,7 +1944,7 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, INTERNAL_ERROR (fname); if (sym->st_shndx == SHN_UNDEF - || (sym->st_shndx >= shnum + || (sym->st_shndx >= SHN_LORESERVE && sym->st_shndx != SHN_XINDEX)) { /* This is no section index, leave it alone |
