binutils-gdb/binutils/testsuite/binutils-all
Andrew Burgess 42bcef4ad6 objdump: Handle 32-bit base address in debug_ranges / debug_loc.
When the DWARF address size is 32-bit, but the host machine is 64-bit,
objdump fails to spot base addresses specified in the .debug_ranges and
.debug_loc lists.

As an example, here is the output when dumping an example .debug_ranges
section with the pre-patched objdump:

    Contents of the .debug_ranges section:

        Offset   Begin    End
        00000000 ffffffff 00000004 (start > end)
        00000000 00000000 00000004
        00000000 ffffffff 00000008 (start > end)
        00000000 00000000 00000004
        00000000 <End of list>

And this is what the same section looks like when dumped with the
patched version of objdump:

    Contents of the .debug_ranges section:

        Offset   Begin    End
        00000000 ffffffff 00000004 (base address)
        00000000 00000004 00000008
        00000000 ffffffff 00000008 (base address)
        00000000 00000008 0000000c
        00000000 <End of list>

binutils/ChangeLog:

	* dwarf.c (is_max_address): New function.
	(display_loc_list): Remove out of date comment, use
	is_max_address.
	(display_debug_ranges): Likewise.

binutils/testsuite/ChangeLog:

	* binutils-all/objdump.exp: Add test for .debug_ranges decode.
	* binutils-all/dw2-ranges.S: New file.
	* binutils-all/dw2-ranges.W: New file.
2015-11-30 13:28:26 +00:00
..
aarch64 ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
arm [ARM] Skip private symbol when doing objdump 2015-03-03 15:00:59 +00:00
bfin ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
hppa ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
i386 Don't hardcode offset of .shstrtab section 2015-04-20 09:55:47 -07:00
m68k ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
mips ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
vax ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
windres ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
x86-64 Don't hardcode offset of .shstrtab section 2015-04-20 09:55:47 -07:00
add-empty-section.d
add-section.d
add-symbol.d Run add-symbol test on mips 2015-10-22 12:49:17 +10:30
alias-2.def
alias.def
ar.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
bintest.s
compress.exp Make default compression gABI compliant 2015-07-14 10:26:23 -07:00
copy-1.d
copy-1.s
copy-2.d
copy-3.d
copy-4.d
copytest.s
debug_str.d Fixes a problem with the BFD library running out of memory because it mistakenly 2014-04-30 17:04:04 +01:00
debug_str.s Fixes a problem with the BFD library running out of memory because it mistakenly 2014-04-30 17:04:04 +01:00
dlltool.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dumptest.s
dw2-1.S ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dw2-1.W Don't change compressed input debug section names 2015-04-23 07:59:59 -07:00
dw2-2.S ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dw2-3.S Fix dw-2 test for 16-bit targets. 2015-05-18 14:36:15 +01:00
dw2-3.W Updated to accept .debug_* sections 2015-07-10 08:14:59 -07:00
dw2-3.rS Add SHF_COMPRESSED support to gas and objcopy 2015-04-08 07:54:09 -07:00
dw2-3.rt Add SHF_COMPRESSED support to gas and objcopy 2015-04-08 07:54:09 -07:00
dw2-3gabi.W Don't change compressed input debug section names 2015-04-23 07:59:59 -07:00
dw2-compressed.S ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
dw2-decodedline-1.S Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
dw2-decodedline.S
dw2-empty.S
dw2-ranges.S objdump: Handle 32-bit base address in debug_ranges / debug_loc. 2015-11-30 13:28:26 +00:00
dw2-ranges.W objdump: Handle 32-bit base address in debug_ranges / debug_loc. 2015-11-30 13:28:26 +00:00
elfedit-1.d Also skip x86_64-*-nacl* 2015-05-12 12:47:27 -07:00
elfedit-2.d
elfedit-3.d
elfedit-4.d
elfedit-5.d Add EM_386/EM_IAMCU support to elfedit.c 2015-05-11 09:57:21 -07:00
elfedit.exp Add EM_386/EM_IAMCU support to elfedit.c 2015-05-11 09:57:21 -07:00
empty-file
empty.s
exclude-1.s
exclude-1a.d
exclude-1b.d
fastcall.def
group-2.s
group-3.s
group-4.s
group-5.d
group-5.s
group-6.d
group-6.s
group.s
libdw2-compressed.out Add a dw2-3.S test 2015-04-04 07:34:25 -07:00
libdw2-compressedgabi.out Don't add the zlib header to SHF_COMPRESSED section 2015-05-14 16:02:08 -07:00
libdw2.out Add a dw2-3.S test 2015-04-04 07:34:25 -07:00
link-order.s
localize-hidden-1.d Fix the evaluation of RL78 complex relocs, by making immediate values be computed relative to a new absolute symbol. 2015-07-24 16:44:27 +01:00
localize-hidden-1.s
localize-hidden-2.d
localize-hidden-2.s
needed-by-reloc.s
nm-1.s * binutils-all/nm.exp: --size-sort test: Add more ELF-like 2013-08-22 11:29:43 +00:00
nm-elf-1.s binutils/ 2013-08-19 15:08:52 +00:00
nm.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
note-1.d
objcopy.exp Add ability for objcopy to insert new symbols into a binary. 2015-10-21 15:16:35 +01:00
objdump.W Don't change compressed input debug section names 2015-04-23 07:59:59 -07:00
objdump.WL
objdump.exp objdump: Handle 32-bit base address in debug_ranges / debug_loc. 2015-11-30 13:28:26 +00:00
objdump.s
pr18374.s Fix PR18374 by making readelf and objdump ignore end-of-list markers in the .debug_loc section if there are relocations against them. 2015-05-15 11:24:33 +01:00
pr19020.in Don't use the output section size to copy input section 2015-09-29 13:31:57 -07:00
pr19020a.d Don't use the output section size to copy input section 2015-09-29 13:31:57 -07:00
pr19020b.d Don't use the output section size to copy input section 2015-09-29 13:31:57 -07:00
readelf.exp Add --decompress option to readelf to decompress sections before they are dumped. 2015-05-15 17:16:31 +01:00
readelf.h
readelf.n PR binutils/15191 2013-02-26 16:59:52 +00:00
readelf.pr18374 Fix PR18374 by making readelf and objdump ignore end-of-list markers in the .debug_loc section if there are relocations against them. 2015-05-15 11:24:33 +01:00
readelf.r Add support for Andes NDS32: 2013-12-13 11:52:32 +00:00
readelf.r-64
readelf.s [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
readelf.s-64 Don't hardcode offset of .shstrtab section 2015-04-20 09:55:47 -07:00
readelf.ss readelf -s test: Skip extra symbols produced by MSP430 assembler. 2014-03-17 11:00:32 +00:00
readelf.ss-64 Fix the binutils readelf.ss test for the AArch64 target. 2015-04-02 15:28:02 +01:00
readelf.ss-mips MIPS testsuite cleanup - part 1 2014-09-06 17:58:37 +01:00
readelf.ss-tmips [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
readelf.wa
readelf.z Add --decompress option to readelf to decompress sections before they are dumped. 2015-05-15 17:16:31 +01:00
size.exp ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
strip-1.d
strip-2.d
strip-3.d [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
strip-4.d
strip-5.d
strip-6.d
strip-7.d
strip-8.d
strip-9.d
strip-10.d My patch to the binutils strip-10.d test was wrong. The osabi field should always be set to 2014-01-29 14:01:54 +00:00
strip-11.d Fix the evaluation of RL78 complex relocs, by making immediate values be computed relative to a new absolute symbol. 2015-07-24 16:44:27 +01:00
strip-12.d Tweak binutils testsuite 2015-08-11 23:29:36 +09:30
strip-12.s Tweak binutils testsuite 2015-08-11 23:29:36 +09:30
symbols-1.d Tweak binutils testsuite 2015-08-11 23:29:36 +09:30
symbols-2.d Tweak binutils testsuite 2015-08-11 23:29:36 +09:30
symbols-3.d Tweak binutils testsuite 2015-08-11 23:29:36 +09:30
symbols-4.d Tweak binutils testsuite 2015-08-11 23:29:36 +09:30
symbols.s objcopy: Improve wildcard matching for symbols with '!' prefix. 2015-08-07 11:41:40 +02:00
testprog.c
testranges-ia64.d
testranges-ia64.s
testranges.d
testranges.s
unique.s
unknown.s
update-1.s objcopy: Add --update-section option. 2015-02-28 21:25:51 +00:00
update-2.s objcopy: Add --update-section option. 2015-02-28 21:25:51 +00:00
update-3.s objcopy: Add --update-section option. 2015-02-28 21:25:51 +00:00
update-4.s objcopy: Add --update-section option. 2015-02-28 21:25:51 +00:00
update-section.exp Run objcopy --update-section test only on ELF targets 2015-03-11 17:59:29 +10:30
version.def
version.s
z.s Add --decompress option to readelf to decompress sections before they are dumped. 2015-05-15 17:16:31 +01:00