Skip to contentSkip to conversation

64-bit cross compiler broken

parisc-linux Paul Bame 3 participants 4 messages Aug 25, 2000 – Aug 28, 2000

lore
Share & tools
lore

Paul Bame

author
#0 lore raw

The current 64-bit cross compiler dies on drivers/block/rd.c

author
#1 lore raw

=
= The current 64-bit cross compiler dies on drivers/block/rd.c =

Another 64-bit gotcha: in arch/parisc64/kernel/entry.S:start_parisc_asm the 'b start_parisc' is branching through a stub and failing miserably. Linker problem?

	-P
#2 lore raw
Quoted 7 lines · Paul Bame

=
= The current 64-bit cross compiler dies on drivers/block/rd.c =

Another 64-bit gotcha: in arch/parisc64/kernel/entry.S:start_parisc_asm the 'b start_parisc' is branching through a stub and failing miserably. Linker problem?

Could be. The 64-bit binutils port hasn't yet been modified to use multiple stub sections. That means a sufficiently large executable may have branches that can't even reach the stubs, and I don't see any error checking for this case.

Hmm, "sufficiently large" is 4*2**(22-1) for 22 bit branch offsets, ie. 8M, so you're hardly likely to have hit that limit. OK, can you tell me the reloc type (from objdump -dr entry.o) for the branch? Also, what does the stub look like, and most importantly, what values does the stub load out of the .plt. I reckon you've probably got a bad .plt value as the code in bfd/elf64-hppa.c:elf64_hppa_finish_dynamic_symbol for setting the plt entry looks wrong to me.

Alan

Signature · 1 line
Linuxcare.  Support for the Revolution.
#3 lore raw
In reply to Paul Bame
Quoted 7 lines · Paul Bame

=
= The current 64-bit cross compiler dies on drivers/block/rd.c =

Another 64-bit gotcha: in arch/parisc64/kernel/entry.S:start_parisc_asm the 'b start_parisc' is branching through a stub and failing miserably. Linker problem?

Wow, you're getting to start_parisc_asm?! Neat! You can take it out now, just branch directly to start_parisc instead -- i only put it in so that i knew what was being executed, rather than having to decode what the C was doing. That doesn't necessarily mean that there isn't a problem, but we should be able to get further than that.

Signature · 1 line
Revolutions do not require corporate support.