[Ltrace-devel] ltrace and .opd section

Petr Machata pmachata at redhat.com
Fri Apr 21 18:26:05 UTC 2006


PAUL GILLIAM wrote:
> On Fri, 2006-04-21 at 05:06 +0200, Petr Machata wrote:
> 
> 
>>$1 = (void *) 0x40000000000006e0
>>
>>Aha! The thing wants to translate already translated address!  No wonder
>>it chokes.  So... next step is discover *why*.  At first, if it should
>>hack around with descriptors at all, and if yes, why does it think that
>>the address is descriptor, when if fact it's real address.
>>
>>I'm not going to investigate on it now, it's almost 5 am here :)
>>PM
>>
> 
> You have it.  If there is no .odp section, then elf_plt2addr should just
> return it's 'addr' argument.
> 
> I think that change has already been made.

Yes, that's what the trunk code actually does.  If there is no .opd,
just answer 'addr'.  However, from what I sent it seems that
elf_plt2addr should just answer 'addr' even though there *is* .opd section.

> 
> Sorry.  I fixed this in the 'secure plt' branch, but not in the trunk.
> 
> -=# Paul #=-
> 
> PS:  I think there may be a couple of other fixes I need I need to
> back-port.  I'll be looking at that this morning.

PM



More information about the Ltrace-devel mailing list