[BFD PATCH] grok NT_AUXV note in ELF core files

Alan Modra amodra@bigpond.net.au
Tue May 20 11:14:00 GMT 2003


On Mon, May 19, 2003 at 02:46:56PM -0700, Roland McGrath wrote:
> This patch makes BFD reading of ELF core files fake a section called
> ".auxv" for an NT_AUXV note, similar to the fake ".reg" section make for
> the note containing register data.  It also adds data structures to
> include/elf/ for interpreting the contents of such sections, analogous to
> the translated forms of other ELF data structures.  Nothing uses these
> formats as yet, but gdb may begin to.  The format layouts are generic ELF.
> 
> Approved to commit?

Looks OK.

> +	sect->alignment_power = 1 + BFD_ARCH_SIZE / 32;

Except that BFD_ARCH_SIZE is fairly useless.  See the comment in
bfd-in2.h.  BFD_DEFAULT_TARGET_SIZE might be better.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Gdb-patches mailing list