Incompatibility of PIC and non-PIC
Alan Modra
alan@linuxcare.com.au
Sat, 19 Aug 2000 09:35:40 +1000 (EST)
On 18 Aug 2000, David Huggins-Daines wrote:
> David Huggins-Daines <dhd@linuxcare.com> writes:
>
> > Alan Modra <alan@linuxcare.com.au> writes:
> > > A bit of head-scratching, a couple of added functions, and the linker now
> > > detects PIC functions and handles them appropriately.
> >
> > Sorry to burst your bubble but this doesn't work in the real world,
> > where "real world" is defined as 'hppa-linux-gcc -o hello hello.c'
I was thingk about it in the shower this morning, and _knew_ I'd be seeing
some mail from you. You see, I really missed the whole point: The
special PIC stubs are really only needed when intermixing calls to dynamic
libraries and statically linked PIC routines - which case we currently
ignore. The fully statically linked case be solved by changing gcc to
reserve r19, although I think I'll leave the code there to add the stubs
and .plt entries. With your fixes, of course!
Alan Modra
--
Linuxcare. Support for the Revolution.