mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
Fix a commit 74e1a04b97
("More fixes for reading corrupt ELF files.")
`readelf --version-info' output formatting regression where a dropped
new line caused section header information from the `.gnu.version_d'
version definition section to be printed on the same line as this
section's first entry.
For example with the `mips-linux' target we get:
$ cat ver_def.s
.data
.globl new_foo
.type new_foo, %object
new_foo:
.symver new_foo, foo@@ver_foo
$ cat ver_def.ver
{ global: *foo*; local: *; };
$ as -o ver_def.o ver_def.s
$ ld -e 0 --export-dynamic --version-script=ver_def.ver -o ver_def ver_def.o
$ readelf -V ver_def
Version symbols section '.gnu.version' contains 4 entries:
Addr: 000000000000007e Offset: 0x01007e Link: 2 (.dynsym)
000: 0 (*local*) 2 (ver_foo) 1 (*global*) 2 (ver_foo)
Version definition section '.gnu.version_d' contains 2 entries:
Addr: 0x0000000000000088 Offset: 0x010088 Link: 3 (.dynstr) 000000: Rev: 1 Flags: BASE Index: 1 Cnt: 1 Name: ver_def
0x001c: Rev: 1 Flags: none Index: 2 Cnt: 1 Name: ver_foo
Version definition past end of section
$
Add the new line then, to get:
$ readelf -V ver_def
Version symbols section '.gnu.version' contains 4 entries:
Addr: 000000000000007e Offset: 0x01007e Link: 2 (.dynsym)
000: 0 (*local*) 2 (ver_foo) 1 (*global*) 2 (ver_foo)
Version definition section '.gnu.version_d' contains 2 entries:
Addr: 0x0000000000000088 Offset: 0x010088 Link: 3 (.dynstr)
000000: Rev: 1 Flags: BASE Index: 1 Cnt: 1 Name: ver_def
0x001c: Rev: 1 Flags: none Index: 2 Cnt: 1 Name: ver_foo
Version definition past end of section
$
instead.
binutils/
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
new line between the heading and the first version definition
entry.
210 lines
6.2 KiB
Plaintext
210 lines
6.2 KiB
Plaintext
2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
|
||
|
||
* readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
|
||
new line between the heading and the first version definition
|
||
entry.
|
||
|
||
2017-02-20 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21156
|
||
* dwarf.c (cu_tu_indexes_read): Move into...
|
||
(load_cu_tu_indexes): ... here. Change the variable into
|
||
tri-state. Change the function into boolean, returning
|
||
false if the indicies could not be loaded.
|
||
(find_cu_tu_set): Return NULL if the indicies could not be
|
||
loaded.
|
||
|
||
2017-02-17 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21156
|
||
* readelf.c (find_section_in_set): Test for invalid section
|
||
indicies.
|
||
|
||
2017-02-17 Nick Clifton <nickc@redhat.com>
|
||
|
||
* readelf.c (get_section_type_name): Add decoding of GNU section
|
||
types.
|
||
|
||
2017-02-15 Nick Clifton <nickc@redhat.com>
|
||
|
||
* MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
|
||
Maintainers section.
|
||
|
||
2017-02-14 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21159
|
||
* readelf.c (dump_section_as_strings): Reset the start address if
|
||
no decompression is perfromed.
|
||
(dump_section_as_bytes): Likewise.
|
||
|
||
2017-02-14 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21158
|
||
* rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
|
||
empty symbol name.
|
||
|
||
2017-02-14 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21157
|
||
* stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
|
||
pairs.
|
||
(parse_number): Exit early if passed an empty string.
|
||
|
||
2017-02-14 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21155
|
||
* readelf.c (IN_RANGE): New macro. Tests for an address + offset
|
||
being within a given range.
|
||
(target_specific_reloc_handling): Use macro to test for underflow
|
||
as well as overflow of reloc offset.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21150
|
||
* nm.c (file_symbol): Add test of string length before testing
|
||
string characters.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21135
|
||
* readelf.c (dump_section_as_bytes): Handle the case where
|
||
uncompress_section_contents returns false.
|
||
(dump_section_as_bytes, load_specific_debug_section): Likewise.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21149
|
||
* readelf.c (get_compression_header): Add size parameter. Check
|
||
size against sizeof compression header before attempting to
|
||
extract the header.
|
||
(process_section_headers): Pass size to get_compression_header.
|
||
(dump_section_as_strings): Likewise.
|
||
(dump_section_as_bytes): Likewise.
|
||
(load_specific_debug_section): Likewise.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21148
|
||
* readelf.c (process_version_sections): Include size of auxillary
|
||
version information when checking for buffer overflow.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21147
|
||
* readelf.c (process_section_contents): Fix off by one error
|
||
reporting un-dumped sections.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21139
|
||
* readelf.c (target_specific_reloc_handling): Add num_syms
|
||
parameter. Check for symbol table overflow before accessing
|
||
symbol value. If reloc pointer is NULL, discard all saved state.
|
||
(apply_relocations): Pass num_syms to target_specific_reloc_handling.
|
||
Call target_specific_reloc_handling with a NULL reloc pointer
|
||
after processing all of the relocs.
|
||
|
||
2017-02-13 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/21137
|
||
* readelf.c (target_specific_reloc_handling): Add end parameter.
|
||
Check for buffer overflow before writing relocated values.
|
||
(apply_relocations): Pass end to target_specific_reloc_handling.
|
||
|
||
2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
|
||
Nick Clifton <nickc@redhat.com>
|
||
|
||
PR 20343
|
||
* doc/binutils.texi (ar): Extend documentation of the --plugin
|
||
option. Include a description of where the plugins should be
|
||
located.
|
||
(nm): Likewise.
|
||
|
||
2017-01-23 Nick Clifton <nickc@redhat.com>
|
||
|
||
* MAINTAINERS: Add Bernd to Past Maintainers section.
|
||
(SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
|
||
section.
|
||
|
||
2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
|
||
|
||
* MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
|
||
|
||
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:
|