This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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] validate binary before use


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


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