RFA: pseudo-relocations for pe targets

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Mon Nov 3 15:23:00 GMT 2008


On Mon, Nov 03, 2008 at 03:21:43PM +0100, Kai Tietz wrote:
>The code in runtimes of the pseudo-relocator would do the following steps:
>1) If "addend" is zero and flag:8 is zero continue to the next element 
>(nothing to be done).
>2) Read the existing relocation as value at "target" as ("rel").
>3) Substract from "rel" the "addend" and the "fixup_sym".
>4) Read the final destination address from "fixup_sym" as "dst".
>5) Add to "dst" the "addend" value.
>6) Add to "rel" the "dst"
>7) Check for overflow
>8) Write "rel" back to "target" by using protect() to make sure that no 
>memory exception appears.
>
>This should enable even pe targets to auto-import even variables in all 
>cases and speed-up execution, too.
>
>I am interested in your opinion about this and also would like to know, if 
>there is for the existing 32-bit targets also an interest to have this 
>change, otherwise I will implement it just for the 64-bit case.

I would be very interested in seeing this added for all PE targets.

cgf



More information about the Binutils mailing list