Add an elf note on ARM to store the MACHINE_ARCH an executable was built
authorandrew <andrew@FreeBSD.org>
Thu, 26 Sep 2013 07:53:18 +0000 (07:53 +0000)
committerandrew <andrew@FreeBSD.org>
Thu, 26 Sep 2013 07:53:18 +0000 (07:53 +0000)
commit9439877e985eb4df023ef814794a47111ca4d892
tree6138d1411d6512a61bc5ec2dfd2cfe2dbf6944ba
parent2fca78e125311d5ffee83d40488c276c68389546
Add an elf note on ARM to store the MACHINE_ARCH an executable was built
for. This is useful for software needing to know which architecture a
binary is built for as arm and armv6 have slight differences meaning only
some binaries build for one will work as expected on the other. It is
expected pkgng will be able to make use of this to simplify the logic to
determine which package ABI to use.

Approved by: re (kib)
contrib/binutils/binutils/readelf.c
contrib/binutils/include/elf/common.h
lib/csu/arm/crt1.c
lib/csu/common/notes.h