This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Java broken after i386 PIC change
Richard Henderson wrote:
> > 0x804aa99 <__register_frame_info+9>: call 0x0 <---- eh?
>
> Interesting. Looks suspiciously like a binutils problem.
> What version do you have installed?
2.9.5.0.22-6, but I'm pretty sure I got the same thing the other day on an RH7
box with 2.10.0.18-1. Will check.
> In libgcc.a, that insn plus relocation should look like
>
> 604: e8 fc ff ff ff call 605 <__register_frame_info+0x5>
> 605: R_386_PC32 .gnu.linkonce.t.i686.get_pc_thunk
>
> correct? I can't imagine how that could get relocated to
> zero unless your binutils decided to put that section at
> vma zero.
Right:
609: e8 fc ff ff ff call 60a <__register_frame_info+0xa>
60a: R_386_PC32 .gnu.linkonce.t.i686.get_pc_thunk
> Would you send me objdump -h of the failing
> executable?
Attached.
> What happens when you run the libstdc++ testsuite? Does
> that fail too? (Or do you not have bash2 installed so it
> just doesn't run at all...)
The later, unfortunatly, but I'll try it later tonight on my RH7 machine.
regards
[ bryce ]
./hello: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .interp 00000013 080480f4 080480f4 000000f4 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .note.ABI-tag 00000020 08048108 08048108 00000108 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .hash 00000234 08048128 08048128 00000128 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .dynsym 00000480 0804835c 0804835c 0000035c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .dynstr 00000517 080487dc 080487dc 000007dc 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
5 .gnu.version 00000090 08048cf4 08048cf4 00000cf4 2**1
CONTENTS, ALLOC, LOAD, READONLY, DATA
6 .gnu.version_r 00000060 08048d84 08048d84 00000d84 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .rel.got 00000018 08048de4 08048de4 00000de4 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
8 .rel.bss 00000028 08048dfc 08048dfc 00000dfc 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
9 .rel.plt 00000128 08048e24 08048e24 00000e24 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
10 .init 0000002f 08048f4c 08048f4c 00000f4c 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
11 .plt 00000260 08048f7c 08048f7c 00000f7c 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
12 .text 00002810 080491e0 080491e0 000011e0 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
13 .fini 0000001a 0804b9f0 0804b9f0 000039f0 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
14 .rodata 000000a8 0804ba20 0804ba20 00003a20 2**5
CONTENTS, ALLOC, LOAD, READONLY, DATA
15 .data 00000124 0804cae0 0804cae0 00003ae0 2**5
CONTENTS, ALLOC, LOAD, DATA
16 .eh_frame 00000410 0804cc04 0804cc04 00003c04 2**2
CONTENTS, ALLOC, LOAD, DATA
17 .ctors 0000000c 0804d014 0804d014 00004014 2**2
CONTENTS, ALLOC, LOAD, DATA
18 .dtors 00000008 0804d020 0804d020 00004020 2**2
CONTENTS, ALLOC, LOAD, DATA
19 .got 000000ac 0804d028 0804d028 00004028 2**2
CONTENTS, ALLOC, LOAD, DATA
20 .dynamic 000000d0 0804d0d4 0804d0d4 000040d4 2**2
CONTENTS, ALLOC, LOAD, DATA
21 .bss 0000020c 0804d1c0 0804d1c0 000041c0 2**5
ALLOC
22 .stab 00003798 00000000 00000000 000041c0 2**2
CONTENTS, READONLY, DEBUGGING
23 .stabstr 0000c4f8 00000000 00000000 00007958 2**0
CONTENTS, READONLY, DEBUGGING
24 .comment 000001ad 00000000 00000000 00013e50 2**0
CONTENTS, READONLY
25 .note 000000b4 0804d3cc 0804d3cc 00013ffd 2**0
CONTENTS, READONLY