This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Fix readelf's knowledge of h8300 reloc sizes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]