aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-string.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-07-13 19:47:11 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-09-23 14:12:54 +0100
commit417ed2883b183a7f9b0c78759736edb085a44e1b (patch)
treeb93c378b21aa1dcef576d1779e8263cbe5bd7004 /libctf/ctf-string.c
parent42859bb4a13a51167fd7a9bab9ae88b9438611f3 (diff)
downloadbinutils-417ed2883b183a7f9b0c78759736edb085a44e1b.zip
binutils-417ed2883b183a7f9b0c78759736edb085a44e1b.tar.gz
binutils-417ed2883b183a7f9b0c78759736edb085a44e1b.tar.bz2
binutils: readelf: when dumping CTF, load strtab and symtab automatically
We were only loading them when explicitly requested, which leads to strings that point off into empty space (into the non-loaded "external" ELF string table). Avoid this unfortunate consequence by loading the strtab and symtab by default, unless a blank name is given. binutils/ * readelf.c (dump_ctf_symtab_name): Give default value. (dump_ctf_strtab_name): Likewise. (dump_section_as_ctf): Allow for the null string.
Diffstat (limited to 'libctf/ctf-string.c')
0 files changed, 0 insertions, 0 deletions