Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org, Vladimir Prus <vladimir@codesourcery.com>
Subject: Re: [PATCH/RFC] auxv entries
Date: Mon, 15 Sep 2008 03:21:00 -0000	[thread overview]
Message-ID: <20080915032032.GB3896@caradoc.them.org> (raw)
In-Reply-To: <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


      parent reply	other threads:[~2008-09-15  3:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-14 21:27 Mark Kettenis
2008-09-15  0:28 ` Thiago Jung Bauermann
2008-09-15  0:34 ` Thiago Jung Bauermann
2008-09-15  9:21   ` Mark Kettenis
2008-09-15 20:23     ` Mark Kettenis
2008-09-15 21:14       ` Daniel Jacobowitz
2008-09-16  3:28       ` Thiago Jung Bauermann
2008-09-15  3:21 ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080915032032.GB3896@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=vladimir@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox