aboutsummaryrefslogtreecommitdiff
path: root/binutils/doc/binutils.texi
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-10-03 17:04:55 +0100
commit616febde0c661843219b66e08e652e76ce856b8f (patch)
treed682ec59d7393fa18c10248503bd7a65bafb69b5 /binutils/doc/binutils.texi
parent2db912ba1a9e1c249cb4795f781fd4ea9fe9e7f2 (diff)
downloadgdb-616febde0c661843219b66e08e652e76ce856b8f.zip
gdb-616febde0c661843219b66e08e652e76ce856b8f.tar.gz
gdb-616febde0c661843219b66e08e652e76ce856b8f.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 'binutils/doc/binutils.texi')
-rw-r--r--binutils/doc/binutils.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index b0de3d0..81d8bc1 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -4850,7 +4850,8 @@ command to @command{ar}, but without using the BFD library. @xref{ar}.
@item --ctf-symbols=@var{section}
@item --ctf-strings=@var{section}
Specify the name of another section from which the CTF file can inherit
-strings and symbols.
+strings and symbols. By default, the @code{.symtab} and its linked
+string table are used.
If either of @option{--ctf-symbols} or @option{--ctf-strings} is specified, the
other must be specified as well.