This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Problem with objdump -x on sparc32
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Problem with objdump -x on sparc32
- From: Andreas Jaeger <aj at suse dot de>
- Date: Wed, 22 Aug 2001 13:47:14 +0200
- Cc: binutils at sources dot redhat dot com
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