[rfc] Use auxillary vector to retrieve .dynamic/.interp sections

Joel Brobecker brobecker@adacore.com
Mon Aug 18 11:41:00 GMT 2008


> ChangeLog:
> 
> 	* solib-svr4.c (read_program_header): New function.
> 	(scan_dyntag_auxv): New function.
> 	(elf_locate_base): Use it if scan_dyntag fails.
> 	(find_program_interpreter): New function.
> 	(enable_break): Use it instead of .interp section.
[...]
> Does this seem useful / reasonble for mainline?

I only loosely reviewed the patch itself, but the idea seems reasonable
to me, particularly since it only tries the auxv iff the traditional
method didn't work.

-- 
Joel



More information about the Gdb-patches mailing list