public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Problem with objdump -x on sparc32
@ 2001-08-22  4:47 Andreas Jaeger
  2001-08-22 11:47 ` H . J . Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 2001-08-22  4:47 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: binutils

HJ,

with binutils 2.11.90.0.27 on sparc32 I get the following running
objdump -x:

[...]
SYMBOL TABLE:
0000000000000000 l    d  .text	0000000000000000 
0000000000000000 l    d  *ABS*	0000000000000000 
[...]

RELOCATION RECORDS FOR [.text]:
OFFSET   TYPE              VALUE 
00000018 R_SPARC_WDISP22   sun4c_fault
00000024 R_SPARC_WDISP22   bad_instruction
[...]
00000280 R_SPARC_32        .text+0x0001788c
00000284 R_SPARC_32        .text+0x000178b0


This means a symbol table output with 64 bit symbols but a relocation
table with 32 bits.  This seems to have been caused by a recent patch
by you.

This breaks compilation of the sparc32 kernel.  The btfixupprep.c
program (part of the Linux kernel in arch/sparc/boot/) expects that
both symbol table and offset have the same size.  I can hack
btfixupprep.c but looking at the output I do wonder why we're not
consistent, it looks really broken now to me.

IMO we should use the same width for printing of both symbol table and
relocation records.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-22 11:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-22  4:47 Problem with objdump -x on sparc32 Andreas Jaeger
2001-08-22 11:47 ` H . J . Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).