PR25031, nm reports wrong address on 32bit
authorAlan Modra <amodra@gmail.com>
Tue, 24 Sep 2019 13:17:13 +0000 (22:47 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Sep 2019 13:23:51 +0000 (22:53 +0930)
commit352f6bc3e5b23e76d8e6f56fb7db4e57d8f5d5bd
treef0ebd14ca712bdfc4ef9e9be85ef8a7d1d1d75e6
parente449ea97ebd3c11a8da5df174f1a1333fbe82828
PR25031, nm reports wrong address on 32bit

Using saved_format breaks when nm is presented with multiple object
files, some 32-bit and some 64-bit.

PR 25031
* nm.c (print_format_string): New.
(get_print_format): Delete saved_format.  Move earlier.
(set_print_width): Call get_print_format.
(print_value): Use print_format_string.
binutils/ChangeLog
binutils/nm.c