Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: bauerman@br.ibm.com
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH/RFC] auxv entries
Date: Mon, 15 Sep 2008 09:21:00 -0000	[thread overview]
Message-ID: <200809150920.m8F9KVTI023217@brahms.sibelius.xs4all.nl> (raw)
In-Reply-To: <1221438784.17278.18.camel@localhost.localdomain> (message from 	Thiago Jung Bauermann on Sun, 14 Sep 2008 21:33:04 -0300)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

> From: Thiago Jung Bauermann <bauerman@br.ibm.com>
> Date: Sun, 14 Sep 2008 21:33:04 -0300
> 
> (I'd really, really like to talk to the person who thought it would be a
> good idea to make <ctrl>+<enter> a shortcut to send the message.)

Heh

> El dom, 14-09-2008 a las 23:27 +0200, Mark Kettenis escribió:
> > 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;
> 
> I have this in <elf.h> in ppc64-linux:
> 
> typedef struct
> {
>   uint64_t a_type;              /* Entry type */
>   union
>     {
>       uint64_t a_val;           /* Integer value */
>       /* We use to have pointer elements added here.  We cannot do that,
>          though, since it does not work when using 32-bit definitions
>          on 64-bit platforms and vice versa.  */
>     } a_un;
> } Elf64_auxv_t;
> 
> So default_auxv_parse seems right to me.

Hmm, so it looks like Linux doesn't follow the 64-bit PowerPC ABI
here.  At least version 1.7 of that spec has the "standard" form of
the struct with a_type being an int.

OpenBSD and Solaris both use the "standard" form, so I'd argue that
Linux is the odd one out here.  I'll see if I can come up with a diff
that overrides the standard layout for 64-bit PPC linux.


  reply	other threads:[~2008-09-15  9: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 [this message]
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

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=200809150920.m8F9KVTI023217@brahms.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=bauerman@br.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /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