From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 4 06:02:47 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42D185F9 for ; Sun, 4 Jan 2015 06:02:47 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 24D0464AA5 for ; Sun, 4 Jan 2015 06:02:47 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0462knr022744 for ; Sun, 4 Jan 2015 06:02:46 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0462kSi022743; Sun, 4 Jan 2015 06:02:46 GMT (envelope-from root) Date: Sun, 4 Jan 2015 06:02:46 +0000 To: freebsd-toolchain@freebsd.org From: "rpaulo (Rui Paulo)" Subject: [Differential] [Commented On] D1428: readelf: Handle note types from different operating systems Message-ID: <1038e35e12e620562b0fb0371f4876b3@localhost.localdomain> X-Priority: 3 Thread-Topic: D1428: readelf: Handle note types from different operating systems X-Herald-Rules: none X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: YTRmNDhhMTEyNjlhZWE2M2RjMWZlZmRhNTYxIFSo14Y= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2015 06:02:47 -0000 rpaulo added a comment. >>! In D1428#5, @emaste wrote: >>>! In D1428#3, @rpaulo wrote: >> This looks odd. Why are we relying on magic numbers instead of constants/enums like before? > > Some of the constants in the previous version are Linux-specific, and don't exist in our ELF headers. > > We could make up our own constants (e.g. NT_LINUX_AUXV) but it doesn't seem like that would provide much value. The same constant name may have different values on different OSes. The Linux note types are Linux specific. Are you saying that FreeBSD reuses them ? REVISION DETAIL https://reviews.freebsd.org/D1428 To: emaste Cc: rpaulo, freebsd-toolchain