summaryrefslogtreecommitdiffstats
path: root/contrib/binutils
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-09-26 07:53:18 +0000
committerandrew <andrew@FreeBSD.org>2013-09-26 07:53:18 +0000
commit9439877e985eb4df023ef814794a47111ca4d892 (patch)
tree6138d1411d6512a61bc5ec2dfd2cfe2dbf6944ba /contrib/binutils
parent2fca78e125311d5ffee83d40488c276c68389546 (diff)
downloadFreeBSD-src-9439877e985eb4df023ef814794a47111ca4d892.zip
FreeBSD-src-9439877e985eb4df023ef814794a47111ca4d892.tar.gz
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)
Diffstat (limited to 'contrib/binutils')
-rw-r--r--contrib/binutils/binutils/readelf.c2
-rw-r--r--contrib/binutils/include/elf/common.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/contrib/binutils/binutils/readelf.c b/contrib/binutils/binutils/readelf.c
index a4adb78..d2e2aef 100644
--- a/contrib/binutils/binutils/readelf.c
+++ b/contrib/binutils/binutils/readelf.c
@@ -9169,6 +9169,8 @@ get_freebsd_note_type (unsigned e_type)
return _("NT_FREEBSD_ABI_TAG");
case NT_FREEBSD_NOINIT_TAG:
return _("NT_FREEBSD_NOINIT_TAG");
+ case NT_FREEBSD_ARCH_TAG:
+ return _("NT_FREEBSD_ARCH_TAG");
default:
break;
}
diff --git a/contrib/binutils/include/elf/common.h b/contrib/binutils/include/elf/common.h
index 17ca0d5..d4d9d7b 100644
--- a/contrib/binutils/include/elf/common.h
+++ b/contrib/binutils/include/elf/common.h
@@ -456,6 +456,7 @@
#define NT_FREEBSD_TAG 1
#define NT_FREEBSD_NOINIT_TAG 2
+#define NT_FREEBSD_ARCH_TAG 3
/* These three macros disassemble and assemble a symbol table st_info field,
which contains the symbol binding and symbol type. The STB_ and STT_
OpenPOWER on IntegriCloud