Date: Tue, 9 Jul 2013 08:19:46 -0600 From: Warner Losh <imp@bsdimp.com> To: Andrew Turner <andrew@fubar.geek.nz> Cc: freebsd-arch@freebsd.org Subject: Re: Adding a MACHINE_ARCH note Message-ID: <32F979BD-FB5C-4111-9586-4C5E7C6DFA71@bsdimp.com> In-Reply-To: <20130709090744.0e497e7e@bender.Home> References: <20130709090744.0e497e7e@bender.Home>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 9, 2013, at 2:07 AM, Andrew Turner wrote: > I have been looking into an issue where it would be useful to know the > value of MACHINE_ARCH a binary was built with, for example on ARM it > could be arm or armv6 (or the big endian variants). >=20 > The reason for this is to teach pkg which arch the package is built = for > as there are a few differences between arm and armv6 that mean > an executable built for one may not run on the other. >=20 > The attached patch stores the value of MACHINE_ARCH in a note so it = can > be read later to get this value. Does anyone have any objections to > this patch, e.g. there is a better way of doing this? I thought that the ELF headers gave us all the data we needed to know = how things were built... Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32F979BD-FB5C-4111-9586-4C5E7C6DFA71>