summaryrefslogtreecommitdiffstats
path: root/contrib/elftoolchain
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-09-15 17:24:11 +0000
committeremaste <emaste@FreeBSD.org>2016-09-15 17:24:11 +0000
commitfa33625a69e572e10bc278b9c2f9415d60cb6d95 (patch)
treed15f67b221a28d46133754e90d94e36a93a466a9 /contrib/elftoolchain
parentaf01810d64c0c75c5ef8b40d9e9d4c68cc6f2c13 (diff)
downloadFreeBSD-src-fa33625a69e572e10bc278b9c2f9415d60cb6d95.zip
FreeBSD-src-fa33625a69e572e10bc278b9c2f9415d60cb6d95.tar.gz
MFC r304160: elfcopy: add elf64-littleaarch64 output target support
Diffstat (limited to 'contrib/elftoolchain')
-rw-r--r--contrib/elftoolchain/libelftc/elftc_bfd_find_target.31
-rw-r--r--contrib/elftoolchain/libelftc/libelftc_bfdtarget.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3 b/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3
index 20dea3c..c340c0c 100644
--- a/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3
+++ b/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3
@@ -89,6 +89,7 @@ Known descriptor names and their properties include:
.It Li elf64-ia64-big Ta ELF Ta MSB Ta 64
.It Li elf64-ia64-little Ta ELF Ta LSB Ta 64
.It Li elf64-little Ta ELF Ta LSB Ta 64
+.It Li elf64-littleaarch64 Ta ELF Ta LSB Ta 64
.It Li elf64-littlemips Ta ELF Ta LSB Ta 64
.It Li elf64-powerpc Ta ELF Ta MSB Ta 64
.It Li elf64-powerpcle Ta ELF Ta LSB Ta 64
diff --git a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
index 88f3220..d6a031e 100644
--- a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
+++ b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
@@ -250,6 +250,14 @@ struct _Elftc_Bfd_Target _libelftc_targets[] = {
},
{
+ .bt_name = "elf64-littleaarch64",
+ .bt_type = ETF_ELF,
+ .bt_byteorder = ELFDATA2LSB,
+ .bt_elfclass = ELFCLASS64,
+ .bt_machine = EM_AARCH64,
+ },
+
+ {
.bt_name = "elf64-littlemips",
.bt_type = ETF_ELF,
.bt_byteorder = ELFDATA2LSB,
OpenPOWER on IntegriCloud