Re: [Linux-ia64] Re: [PATCH] head.S fix for unusual load addrs

From: Jesse Barnes <jbarnes_at_sgi.com>
Date: 2003-05-09 02:07:14
On Wed, May 07, 2003 at 09:59:41PM -0700, David Mosberger wrote:
>   Keith> GPREL22, LTOFF22, LTOFF_FPTR22, PCREL21B, PCREL60B,
>   Keith> SEGREL64LSB are not a problem, they are already PIC.
>   Keith> DIR32LSB, DIR64LSB, FPTR64LSB are easy to adjust.  IMM64 is
>   Keith> the only messy bit of code, lots of shifts.  Even IMM64 is
>   Keith> not that hard to do in PIC asm.
> 
> Remember, we already have the in-kernel module loader, which has to
> deal with "ld -r" modules.  I'd have preferred if those had been
> shared objects, too, but apparently the toolchains on some other
> platforms is sufficiently broken that this wasn't a feasible option
> (not for 2.6, anyhow).

So simply linking with 'ld -q' wouldn't be sufficient?  Doesn't that
produce a binary that will boot w/o elilo changes, but can also be
relocated?

Thanks,
Jesse
Received on Thu May 08 09:07:19 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST