aboutsummaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorNick Lott <nick.lott@gmail.com>2021-04-21 15:33:13 +0100
committerNick Clifton <nickc@redhat.com>2021-04-21 15:33:13 +0100
commit047c3dbf5541b14a6fb562c2d847784f4b06de78 (patch)
treed14e956b967429659a03fd79736e0f730fc4bb64 /binutils/doc
parentfd34472cdce1d49bee6fa840caffff6f06de00de (diff)
downloadgdb-047c3dbf5541b14a6fb562c2d847784f4b06de78.zip
gdb-047c3dbf5541b14a6fb562c2d847784f4b06de78.tar.gz
gdb-047c3dbf5541b14a6fb562c2d847784f4b06de78.tar.bz2
Add ability to select numeric base when displaying symbol values in readelf.
PR 27672 * readelf.c (sym_base): New variable. (enum print_mode): Add more modes. (print_vma): Add suport for new modes. (options): Add sym-base. (usage): Add sym-base. (parse_args): Add support for --sym-base. (print_dynamic_symbol_size): New function. (print_dynamic_symbol): Use new function. * doc/binutils.texi: Document the new feature. * NEWS: Mention the new feature.
Diffstat (limited to 'binutils/doc')
-rw-r--r--binutils/doc/binutils.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 292f711..a8157ad 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -4788,6 +4788,7 @@ readelf [@option{-a}|@option{--all}]
[@option{-e}|@option{--headers}]
[@option{-s}|@option{--syms}|@option{--symbols}]
[@option{--dyn-syms}|@option{--lto-syms}]
+ [@option{--sym-base=[0|8|10|16]}]
[@option{--demangle@var{=style}}|@option{--no-demangle}]
[@option{--quiet}]
[@option{--recurse-limit}|@option{--no-recurse-limit}]
@@ -4917,6 +4918,18 @@ has one. The output format is the same as the format used by the
@cindex LTO symbol table
Displays the contents of any LTO symbol tables in the file.
+@item --sym-base=[0|8|10|16]
+@cindex symbol table size base
+Forces the size field of the symbol table to use the given base. Any
+unrecognized options will be treated as @samp{0}. @option{--sym-base=0}
+represents the default and legacy behaviour. This will output sizes as decimal
+for numbers less than 100000. For sizes 100000 and greater hexadecimal notation
+will be used with a 0x prefix.
+@option{--sym-base=8} will give the symbol sizes in octal.
+@option{--sym-base=10} will always give the symbol sizes in decimal.
+@option{--sym-base=16} will always give the symbol sizes in hexadecimal with a
+0x prefix.
+
@item -C
@itemx --demangle[=@var{style}]
@cindex demangling in nm