Re: in-kernel linking issues

From: Richard Henderson (rth@twiddle.net)
Date: Sat Nov 16 2002 - 17:51:02 EST


On Sat, Nov 16, 2002 at 04:47:55PM +1100, Rusty Russell wrote:
> [ Sorry for the delayed reply, I only got this mail via kernel.org: did you
> get a bounce from rusty@rustcorp.com.au? ]

Nope.

> Thanks for this. It adds even more weight to your ET_DYN argument as well.
> I'll need to play with that linker script some more (on PPC, binfmt_misc.o
> is 13000 bytes, binfmt_misc.so becomes 156128 bytes 8)

I know what this is -- max architectural page size of 64k.
The linker is trying to make the file offset congruent to
the address mod 64k. Which adds a *lot* of padding.

Should be fixable by using the -N option.

> There's still the issue of PPC and PPC64 which can only jump 24-bits away,
> and so currently insert trampolines which have to be allocated with the
> module, but that should be no uglier than currently.

I would hope that this would be handled by the normal .plt
creation. We'll see.

r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:18 EST