diff options
| author | Mark Wielaard <[email protected]> | 2018-07-04 00:31:46 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-07-04 00:31:46 +0200 |
| commit | 94c975eefdfbfa9319b7bab69600c76fe6be7910 (patch) | |
| tree | e29e208499440fdbaac2a867bcd7029f12e89a7a /tests/elfstrmerge.c | |
| parent | 766df1e15c1e8f8bc9890e7538eb2ef15a6516dc (diff) | |
| parent | aa36de0335e3ce12898954985a208f6336731289 (diff) | |
Merge tag 'elfutils-0.173' into mjw/RH-DTSdts-0.173
elfutils 0.173 release
Removed riscv backend for now.
Removed new arm32 tests.
Added various new files to libdw_static_pic.a to support split dwarf.
Diffstat (limited to 'tests/elfstrmerge.c')
| -rw-r--r-- | tests/elfstrmerge.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/elfstrmerge.c b/tests/elfstrmerge.c index 8d5b53cb..3bb90c42 100644 --- a/tests/elfstrmerge.c +++ b/tests/elfstrmerge.c @@ -195,7 +195,7 @@ main (int argc, char **argv) size_t symtabndx = 0; Elf_Scn *symtabscn = NULL; GElf_Shdr symtabshdr_mem; - GElf_Shdr *symtabshdr; + GElf_Shdr *symtabshdr = NULL; while ((symtabscn = elf_nextscn (elf, symtabscn)) != NULL) { symtabshdr = gelf_getshdr (symtabscn, &symtabshdr_mem); @@ -210,7 +210,7 @@ main (int argc, char **argv) } } - if (symtabndx == 0) + if (symtabshdr == NULL) fail ("No symtab found", fname); if ((symtabshdr->sh_flags & SHF_ALLOC) != 0) @@ -578,7 +578,8 @@ main (int argc, char **argv) break; case SHT_DYNAMIC: - /* Fallthrough. There are string indexes in here, but + FALLTHROUGH; + /* There are string indexes in here, but they (should) point to a allocated string table, which we don't alter. */ default: |
