From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1285 invoked by alias); 15 Sep 2008 03:21:14 -0000 Received: (qmail 1277 invoked by uid 22791); 15 Sep 2008 03:21:14 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 15 Sep 2008 03:20:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 57B9C10CEB; Mon, 15 Sep 2008 03:20:33 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 23A7A10CDA; Mon, 15 Sep 2008 03:20:33 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Kf4dc-00015s-M4; Sun, 14 Sep 2008 23:20:32 -0400 Date: Mon, 15 Sep 2008 03:21:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb-patches@sourceware.org, Vladimir Prus Subject: Re: [PATCH/RFC] auxv entries Message-ID: <20080915032032.GB3896@caradoc.them.org> Mail-Followup-To: Mark Kettenis , gdb-patches@sourceware.org, Vladimir Prus References: <200809142127.m8ELR9eX025288@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809142127.m8ELR9eX025288@brahms.sibelius.xs4all.nl> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00333.txt.bz2 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