Re: [PATCH] module relocation code

From: Jean-Marc Saffroy <jean-marc.saffroy_at_ext.bull.net>
Date: 2004-04-22 08:50:59
On Wed, 21 Apr 2004, David Mosberger wrote:

> Apart from formatting issues, I didn't see where/how the patch handles
> the case in_core() && !in_init(), but that's just based on a quick read.

The code uses <val> to fix the relocation at <location>:
 - location is always in the module, so either in core or in init
 - val can be in core, in init, or far, far away (kernel or other module)

When val and location are both in init or both in core, there's nothing to
do[*]. When val and location are in different areas, I always use a plt
(and then a function descriptor for val is needed if val is in the
module).


[*] unless the text grows larger than 32MB, now that I think about it. It 
may be better to use a plt depending on the offset between val and plt, 
after all.

-- 
Jean-Marc Saffroy - jean-marc.saffroy@ext.bull.net

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Apr 21 18:55:21 2004

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