This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix lazy setting for PLTREL overlap cpus.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]