d1c4b12b9d
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.
15 lines
377 B
Plaintext
15 lines
377 B
Plaintext
Contents of the .*ebug_loc section:
|
|
|
|
Warning: This section has relocations - addresses seen here may not be accurate.
|
|
|
|
Offset Begin End Expression
|
|
0+0 0+0 0+0 .*
|
|
0000000b 0+0 0+0 .*
|
|
00000019 <End of list>
|
|
00000021 0+0 0+0 .*
|
|
0000002c 0+0 0+0 .*
|
|
00000039 0+0 0+0 .*
|
|
0000004e 0+0 0+0 .*
|
|
00000063 <End of list>
|
|
#pass
|