This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH]: Fix readelf's knowledge of h8300 reloc sizes
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 6 Feb 2007 10:50:33 -0500 (EST)
- Subject: Re: [PATCH]: Fix readelf's knowledge of h8300 reloc sizes
- References: <m3wt2v49ar.fsf@redhat.com>
On Tue, 6 Feb 2007, Nick Clifton wrote:
> 2007-02-06 Nick Clifton <nickc@redhat.com>
> * dwarf.c (read_and_display_attr_value): Extend number of
> languages know for the DW_AT_language attribute.
> (process_debug_info): Display the attribute offset before decoding
> the attribute, in case there are problems.
On a 32-bit host, this'll get you (cutnpasted):
gcc -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/binutils
-I. -D_GNU_SOURCE -I. -I/h/hp/binutils/cvs_latest/src/binutils
-I../bfd -I/h/hp/binutils/cvs_latest/src/binutils/../bfd
-I/h/hp/binutils/cvs_latest/src/binutils/../include
-DLOCALEDIR="\"/usr/local/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
/h/hp/binutils/cvs_latest/src/binutils/dwarf.c
/h/hp/binutils/cvs_latest/src/binutils/dwarf.c: In function
`process_debug_info':
/h/hp/binutils/cvs_latest/src/binutils/dwarf.c:1748: warning:
long unsigned int format, int arg (arg 2)
make[4]: *** [dwarf.o] Error 1
Note the -Werror. I suggest casting to long unsigned.
(My autotester blew up, but before it got to Alan's bug.)
brgds, H-P