svn commit: r313411 - head/contrib/elftoolchain/libelftc

Justin Hibbits jhibbits at FreeBSD.org
Wed Feb 8 03:21:31 UTC 2017


Author: jhibbits
Date: Wed Feb  8 03:21:29 2017
New Revision: 313411
URL: https://svnweb.freebsd.org/changeset/base/313411

Log:
  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

Modified:
  head/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c

Modified: head/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
==============================================================================
--- head/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c	Wed Feb  8 00:02:54 2017	(r313410)
+++ head/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c	Wed Feb  8 03:21:29 2017	(r313411)
@@ -127,6 +127,15 @@ struct _Elftc_Bfd_Target _libelftc_targe
 	},
 
 	{
+		.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_targe
 	},
 
 	{
+		.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,


More information about the svn-src-all mailing list