This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH/RFC] auxv entries
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb-patches at sourceware dot org, Vladimir Prus <vladimir at codesourcery dot com>
- Date: Sun, 14 Sep 2008 23:20:32 -0400
- Subject: Re: [PATCH/RFC] auxv entries
- References: <200809142127.m8ELR9eX025288@brahms.sibelius.xs4all.nl>
On Sun, Sep 14, 2008 at 11:27:09PM +0200, Mark Kettenis wrote:
> Many, if not all, processor-specific ELF ABI documents have the
> following definition of auxv entries:
>
> typedef struct
> {
> int a_type;
> union {
> long a_val;
> void *a_ptr;
> void (*a_fcn)();
> } a_un;
> } auxv_t;
>
> This is not the layout that default_auxv_parse() uses though, which is
> wrong for big-endian 64-bit systems. The attached diff fixes this,
> making the assumption that a_val is "naturally" aligned.
If I remember right, this is a difference between Linux and other
systems (including Solaris). Someone here was looking at
this in context of sparc-solaris2.10... Vladimir, was it you?
--
Daniel Jacobowitz
CodeSourcery