[parisc-linux] Non-bootable kernel problems
Alan Modra
alan@linuxcare.com.au
Sat, 15 Jul 2000 11:31:58 +1000 (EST)
On 14 Jul 2000, David Huggins-Daines wrote:
> Alan: any thoughts on this?
My first thoughts when I read Jeff's email about my proposed removal of
the gcc hack for the hpux linker were along the lines of "two wrongs don't
make a right, so it's not surprising that ld -r is tripped up". That was
late last night just before I went to bed, and I'm glad I didn't reply
then, as Jeff is quite correct. The way those LR and RR field selectors
work means that a reloc addend cannot be modified under any circumstances.
Even if the gcc hack was removed, the linker would still do the wrong
thing with certain cases of one instruction with LR selector combined with
multiple instructions using RR selectors. Gross.
I'm not sure why the assembler is specifying the relocs against a sections
symbols - it's something I've noticed on x86 for a long time, and never
bothered to figure out why, as it didn't cause any problem. I'll have a
look.
Regards, Alan Modra
--
Linuxcare. Support for the Revolution.