diff options
author | Nick Clifton <nickc@redhat.com> | 2015-05-15 11:21:38 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-05-15 11:24:33 +0100 |
commit | d1c4b12b9d48d9266b78e2c22d70aa25830b9f8f (patch) | |
tree | 3f096548d3838f9387b3b8b7175a6a231f335c76 /binutils/testsuite/ChangeLog | |
parent | 4bc0608a8b693f033555aa5705fdd5fc44cb9a9a (diff) | |
download | binutils-d1c4b12b9d48d9266b78e2c22d70aa25830b9f8f.zip binutils-d1c4b12b9d48d9266b78e2c22d70aa25830b9f8f.tar.gz binutils-d1c4b12b9d48d9266b78e2c22d70aa25830b9f8f.tar.bz2 |
Fix PR18374 by making readelf and objdump ignore end-of-list markers in the .debug_loc section if there are relocations against them.
PR binutils/18374
bin * dwarf.h (struct dwarf_section): Add reloc_info and num_relocs
fields.
(struct dwarf_section_display): Change bitfield to boolean.
(reloc_at): Add prototype.
* dwarf.c (display_loc_list): Ignore list terminators if there are
relocs against them.
(display_debug_loc): Issue a warning if there are relocs against
the .debug_loc section.
(display_displays): Initialise reloc_info and num_relocs fields.
* objdump.c (load_specific_debug_section): Initialise reloc_info
and num_relocs fields.
(reloc_at): New function.
* readelf.c (is_32bit_abs_reloc): Add IA64's R_IA64_DIS32LSB
reloc.
(reloc_at): New function.
(apply_relocations): Add relocs_return and num_relocs_return
parameters. Fill them in with the loaded relocs if non-NULL.
(dump_section_as_bytes): Update call to apply_relocations.
(load_specific_debug_section): Initialise reloc_info and
num_relocs fields.
tests * binutils-all/pr18374.s: New test file.
* binutils-all/readelf.exp: Assemble and run the new test.
* binutils-all/readelf.pr18374: Expected output from readelf.
Diffstat (limited to 'binutils/testsuite/ChangeLog')
-rw-r--r-- | binutils/testsuite/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 8b1e3b4..ad8d8ad 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -4,6 +4,13 @@ with "$OBJDUMP -W". * binutils-all/libdw2-compressedgabi.out: Updated. +2015-05-15 Nick Clifton <nickc@redhat.com> + + PR binutils/18374 + * binutils-all/pr18374.s: New test file. + * binutils-all/readelf.exp: Assemble and run the new test. + * binutils-all/readelf.pr18374: Expected output from readelf. + 2015-05-12 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit-1.d: Also skip x86_64-*-nacl*. |