From owner-freebsd-arch@freebsd.org Tue Sep 12 19:00:14 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45278E17E34 for ; Tue, 12 Sep 2017 19:00:14 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2F59F81547 for ; Tue, 12 Sep 2017 19:00:14 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2EBAEE17E31; Tue, 12 Sep 2017 19:00:14 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E4B4E17E30 for ; Tue, 12 Sep 2017 19:00:14 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: from smtp.imp.ch (smtp.imp.ch [IPv6:2001:4060:1:1001::13:196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9DB281545; Tue, 12 Sep 2017 19:00:13 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: from [192.168.225.14] (dhclient-91-190-10-49.flashcable.ch [91.190.10.49]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fgznet.ch (Postfix) with ESMTPSA id 7EFC1C0517; Tue, 12 Sep 2017 21:00:02 +0200 (CEST) Subject: Re: ELF auxiliary vector tags To: John Baldwin Cc: arch@freebsd.org References: <26458208-EC4B-4647-8271-DF480EDD57DF@xcllnt.net> <5184520.CTdkFHEYDQ@ralph.baldwin.cx> From: Andreas Tobler Message-ID: Date: Tue, 12 Sep 2017 20:59:53 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <5184520.CTdkFHEYDQ@ralph.baldwin.cx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit X-Scanned-By: Asterix Submit on 127.0.1.1 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2017 19:00:14 -0000 On 12.09.17 00:45, John Baldwin wrote: > On Monday, September 11, 2017 12:05:02 PM Marcel Moolenaar wrote: >> >>> On Sep 8, 2017, at 10:36 AM, John Baldwin wrote: >> >> >>> I know Justin changed time_t to 64-bit on 32-bit powerpc which effectively broke 32-bit powerpc earlier, but this change would break both 32-bit and 64-bit powerpc and is probably more disruptive (in theory some binaries might have worked with a wrong time_t, but renumber AT_STACKPROT, etc. will probably break every binary). >> >> That probably depends on the byte order. I would think widening >> time_t on a big-endian machine is a lot more disruptive than >> doing it on a little-endian machine. >> >> That said and along the lines of what @imp said: >> Maybe add a a MD macro (e.g. NO_MI_AUX_VECTORS) whose existence >> suppresses the MI definitions of AT_* so that MD headers can >> define their own? > > Going forward I would like to standardize on common values for new vectors > added. The current implementation of 'info auxv' for GDB assumes they > are the same on all architectures (and judging by the binutils / gdb bits > for Linux, Linux uses the same AT_* values on all platforms). Are you > running powerpc binaries yourself? The only person who I know is who has > replied (Justin) is fine with just pulling the tier-2 card on powerpc to > bring it inline with all the other platforms (which are already identical). +1 from my side. Andreas