This is the mail archive of the binutils@sources.redhat.com 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: RFA: Fix readelf -wi test (Was: Re: readelf: apply all rela relocations in the debug_info section)


On Wed, Apr 23, 2003 at 06:34:31PM +0100, Nick Clifton wrote:
> Hi Joern,
> 
> > The reaadelf.wi template hasn't been updated in years, and not only
> > the representation of the debug information, even the source file
> > numbers are out of date; that mean that any sucess on this testcase
> > (not counting XFAILs) on any target must have been a bug.
> > I've updated readelf.wi so that the test passes for sh-elf; the readelf.out
> > for sh-elf is attached separately.  The output style change that I have
> > considered a bug is the adding of a trailing "; " in every location
> > expression, e.g. (DW_OP_addr: 0) .
> > The following patch implements this readelf.wi update and suppression of
> > the trailing "; ".
> 
> Your patch still does not resolve the "readelf: Warning: Skipping
> unexpected symbol type 1" problem that you mentioned in your earlier
> post.  In my opinion however the readelf.wi is severely broken, since
> there is no real guaranteed structure to the output of "readelf -wi".
> 
> Instead I am going to apply your patch together with a change of my
> own.  This additional patch:
> 

Now it fails on RedHat 9:


H.J.
----
exec /export/build/linux/binutils-debug/build-i686-linux/binutils/readelf  -wi tmpdir/testprog.o > readelf.out
regexp_diff match failure
regexp "^     DW_AT_producer    :.*$"
line   "     DW_AT_name        : (indirect string, offset: 0x68): /net/gnu/export/linux/src/binutils/binutils/binutils/testsuite/binutils-all/testprog.c	"
regexp_diff match failure
regexp "^     DW_AT_language    : 1	\(ANSI C\)$"
line   "     DW_AT_producer    : (indirect string, offset: 0x2e): GNU C 3.2.2 20030222 (Red Hat Linux 3.2.2-5)	"
regexp_diff match failure
regexp "^     DW_AT_name        : .*$"
line   "     DW_AT_language    : 1	(ANSI C)"
FAIL: readelf -wi


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