Re: [patch] validate binary before use

Jan Kratochvil
2013-02-01T20:43:27Z

On Fri, 01 Feb 2013 15:31:27 +0100, Aleksandar Ristovski wrote:
> On 13-01-31 10:06 PM, Jan Kratochvil wrote:
> >This behavior is correct. Changing it would break all the tools around.
>
> <offtopic>
> If you say so. IMO it is less than ideal, it should specify l_addr
> as expected and make prelink transparent. Like this, it special
> cases meaning of this field, which is common and across many systems
> happens to always have the same meaning (except when 'successful'
> prelinking happens).
> </offtopic>

FYI on gdbserver/linux-low.c get_phdr_phnum_from_proc_auxv finds PHDR_MEMADDR
which is the absolute L_ADDR form you ask for.

Just solib-svr4.c tries to be (is it?) cross-OS compatible so it does not have
this PHDR_MEMADDR value available.

Regards,
Jan