[PATCH] Fix lazy setting for PLTREL overlap cpus.

David Miller davem@davemloft.net
Wed Apr 4 03:45:00 GMT 2012


From: "Carlos O'Donell" <carlos@systemhalted.org>
Date: Tue, 3 Apr 2012 23:39:34 -0400

> We need some ASCII art here:
> 
> Overlap case:
> (a) Start with:
> |<---DT_REL(A)------------------------------>|
>               |<---DT_JMPREL--->|
> (b) Compute
> |<---- r0 --->|<----- r1 ------>|<--- r2 --->|
> 
> vs.
> 
> Non-overlap case:
> |<---DT_REL ---->|<---DT_JMPREL--->|
> |<--- r0 ------->|<--- r1 -------->|

I've also been thinking about the fact that I've never seen DT_JMPREL
in the middle of DT_REL(A), it always just consumes strictly the end
of DT_REL(A) when it overlaps.

Eliminating the handling of that case would simplify things
considerably, because then you only need two ranges whether there can
be overlap or not.



More information about the Libc-alpha mailing list