This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [BFD PATCH] grok NT_AUXV note in ELF core files
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Roland McGrath <roland at redhat dot com>
- Cc: binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Tue, 20 May 2003 20:42:03 +0930
- Subject: Re: [BFD PATCH] grok NT_AUXV note in ELF core files
- References: <200305192146.h4JLku707345@magilla.sf.frob.com>
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