diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-02-08 03:21:29 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2017-02-08 03:21:29 +0000 |
commit | 9569e13dce6c72df00b4f612c22f49a3fb9a552e (patch) | |
tree | 78404ad08583fbf827efbd6967dec5b328a19404 /contrib/elftoolchain | |
parent | 0ee82391df17e64d647418b29cf67588758ca8e4 (diff) | |
download | src-9569e13dce6c72df00b4f612c22f49a3fb9a552e.tar.gz src-9569e13dce6c72df00b4f612c22f49a3fb9a552e.zip |
Add elf*-powerpc-freebsd targets to the elftoolchain target list
FreeBSD uses the full target triple when generating embedded rootfs images
(MFS_IMAGE= make option). Without this change objcopy errors out with:
objcopy: elf64-poewrpc-freebsd: invalid target name
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=313411
Diffstat (limited to 'contrib/elftoolchain')
-rw-r--r-- | contrib/elftoolchain/libelftc/libelftc_bfdtarget.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c index 43b9480c321f..e73dc2a947f3 100644 --- a/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c +++ b/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c @@ -127,6 +127,15 @@ struct _Elftc_Bfd_Target _libelftc_targets[] = { }, { + .bt_name = "elf32-powerpc-freebsd", + .bt_type = ETF_ELF, + .bt_byteorder = ELFDATA2MSB, + .bt_elfclass = ELFCLASS32, + .bt_machine = EM_PPC, + .bt_osabi = ELFOSABI_FREEBSD, + }, + + { .bt_name = "elf32-powerpcle", .bt_type = ETF_ELF, .bt_byteorder = ELFDATA2LSB, @@ -290,6 +299,15 @@ struct _Elftc_Bfd_Target _libelftc_targets[] = { }, { + .bt_name = "elf64-powerpc-freebsd", + .bt_type = ETF_ELF, + .bt_byteorder = ELFDATA2MSB, + .bt_elfclass = ELFCLASS64, + .bt_machine = EM_PPC64, + .bt_osabi = ELFOSABI_FREEBSD, + }, + + { .bt_name = "elf64-powerpcle", .bt_type = ETF_ELF, .bt_byteorder = ELFDATA2LSB, |