When displaying the section headers table using objdump (-h), the column containing the section header name is currently fixed at 13 characters. A section name that is longer than 13 characters will overflow the column causing the table to become miss-aligned. In this commit I change the behaviour so that _in wide mode_ (-w -h) the section name column is dynamically resized to fit the longest section name we plan to display. In wide mode the column still retains a minimum width of 13 characters. In non-wide more the behaviour is completely unchanged. While I was changing the dump_headers function I have unified the two printf lines that handled the different address widths into a single printf, the address width is now passed into printf using the '*' field width format character. binutils/ChangeLog: * objdump.c (dump_section_header): Extract max section name length from data parameter, use this when formatting output. (find_longest_section_name): New function. (dump_headers): Calculate longest section name when in wide mode, reformat to unify printing of header line. ld/ChangeLog: * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
78 lines
2.2 KiB
Plaintext
78 lines
2.2 KiB
Plaintext
2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* objdump.c (dump_section_header): Extract max section name length
|
||
from data parameter, use this when formatting output.
|
||
(find_longest_section_name): New function.
|
||
(dump_headers): Calculate longest section name when in wide mode,
|
||
reformat to unify printing of header line.
|
||
|
||
2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
|
||
|
||
PR 21059
|
||
* arlex.l: Support processing with flex 2.6.3.
|
||
* deflex.l: Likewise.
|
||
|
||
2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
|
||
|
||
* resbin.c: Optional dialog control data immediately follows
|
||
the control description without alignment.
|
||
* testsuite/binutils-all/windres/controldata.rc: New test.
|
||
source.
|
||
* testsuite/binutils-all/windres/controldata.rsd: New test.
|
||
|
||
2017-01-12 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/20876
|
||
* NEWS: Mention the new feature.
|
||
* testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
|
||
New proc to test the location of separate debug info files using
|
||
the build-id method.
|
||
|
||
2017-01-10 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 21034
|
||
* stabs.c (parse_stab_members): Fix thinko checking for g++
|
||
version 1 stabs information.
|
||
|
||
2017-01-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
* objdump.c (display_file): Add new parameter 'last_file'. If
|
||
last_file is true, do not call bfd_close at the end of the
|
||
function.
|
||
(main): Set the value of the last_file parameter when calling
|
||
display_file.
|
||
|
||
2017-01-09 Alan Modra <amodra@gmail.com>
|
||
|
||
* readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
|
||
comment.
|
||
|
||
2017-01-06 Nick Clifton <nickc@redhat.com>
|
||
|
||
* MAINTAINERS: Move Paul Brook to the Past Maintainers section.
|
||
|
||
2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
|
||
|
||
PR 20958
|
||
* syslex.l (option): Add noyywrap
|
||
(yywrap): Delete.
|
||
|
||
2017-01-02 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2016
|
||
|
||
Copyright (C) 2017 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|