Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2015 06:02:46 +0000
From:      "rpaulo (Rui Paulo)" <phabric-noreply@FreeBSD.org>
To:        freebsd-toolchain@freebsd.org
Subject:   [Differential] [Commented On] D1428: readelf: Handle note types from different operating systems
Message-ID:  <1038e35e12e620562b0fb0371f4876b3@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-lsl5z2duoaqvef2padti-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-lsl5z2duoaqvef2padti-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1038e35e12e620562b0fb0371f4876b3>