Re: [PATCH] module relocation code

From: Jean-Marc Saffroy <>
Date: 2004-04-23 22:43:33
Hello David,

On Wed, 21 Apr 2004, David Mosberger wrote:

> Yes, the code is probably fine, but I think it could be structured
> better for better.

Do you mean there should be more generic code to handle the same problem
for other relocation types? BTW, do you have any hints as to which types
need to be fixed besides PCREL21B?

Also, you mentioned formatting problems in the patch, but I can't see any.

> BTW: a PLT is also a bit of overkill.  What you're doing is similar to
> what the GNU linker calls "relaxation" (extending the reach of a
> branch), since the gp value is the same for the caller and the callee.

Indeed, but the only benefit I can see is that we could use a smaller plt
entry that does not update gp and simply branches to the target. Only
module .init code is impacted, so I'm not sure it is worth handling it

Now, I am fairly new to relocations and the like, so maybe I am missing

Best regards,

Jean-Marc Saffroy -

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Fri Apr 23 08:41:57 2004

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