[parisc-linux] 64 bit linker problem?

Alan Modra alan@linuxcare.com.au
Sat, 26 Aug 2000 11:29:21 +1000 (EST)


On Fri, 25 Aug 2000, John Marvin wrote:

> 
> > 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?
> 
> Just some more information. The "b start_parisc" appears to branch to
> what should be a stub entry. There is nothing there, i.e. it is all
> zero's, so we get a break instruction trap.

Yeah.  That's the sort of thing I was expecting.  It appears to me that
only stubs or plt entries for dynamic symbols (ie. in shared libs) are
filled in.  Until we fix the linker, you may be able to work around the
problem by convincing the linker that a stub is not needed for the
branch.  Where is "start_parisc" relative to the branch?  If you know
you'll always need a long branch, why not use a ble?

Alan Modra
-- 
Linuxcare.  Support for the Revolution.