From edc1d65242992c050acce8afbd26191abf6bb433 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 21 Nov 2011 13:19:33 +0000 Subject: [PATCH] * config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd. --- gas/ChangeLog | 4 ++++ gas/config/tc-ppc.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index da88c3b86a0..7ced7491b82 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2011-11-21 Andreas Tobler + + * config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd. + 2011-11-16 David S. Miller * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index aba70975b32..17fb84d7a9c 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1363,14 +1363,16 @@ ppc_target_format (void) return "xcoff-powermac"; #else # ifdef TE_AIX5 - return (ppc_obj64 ? "aix5coff64-rs6000" : "aixcoff-rs6000"); + return (ppc_obj64 ? "aix5coff64-rs6000" : "aixcoff-rs6000"); # else - return (ppc_obj64 ? "aixcoff64-rs6000" : "aixcoff-rs6000"); + return (ppc_obj64 ? "aixcoff64-rs6000" : "aixcoff-rs6000"); # endif #endif #endif #ifdef OBJ_ELF -# ifdef TE_VXWORKS +# ifdef TE_FreeBSD + return (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd"); +# elif defined (TE_VXWORKS) return "elf32-powerpc-vxworks"; # else return (target_big_endian -- 2.30.2