svn commit: r317721 - stable/11/contrib/elftoolchain/libelftc

Ed Maste emaste at FreeBSD.org
Wed May 3 02:30:59 UTC 2017


Author: emaste
Date: Wed May  3 02:30:58 2017
New Revision: 317721
URL: https://svnweb.freebsd.org/changeset/base/317721

Log:
  MFC r313411 (jhibbits): 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

Modified:
  stable/11/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c
==============================================================================
--- stable/11/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c	Wed May  3 02:25:11 2017	(r317720)
+++ stable/11/contrib/elftoolchain/libelftc/libelftc_bfdtarget.c	Wed May  3 02:30:58 2017	(r317721)
@@ -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