This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch, RFC] gas support for powerpc*-freebsd
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: binutils at sourceware dot org
- Date: Sat, 19 Nov 2011 22:46:53 +0100
- Subject: [patch, RFC] gas support for powerpc*-freebsd
Hi,
this is the second part for powerpc*-freebsd support.
Is this ok for trunk?
Thanks,
Andreas
2011-11-19 Andreas Tobler <andreast@fgznet.ch>
* config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.
Index: config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.180
diff -u -r1.180 tc-ppc.c
--- config/tc-ppc.c 14 Jun 2011 09:03:51 -0000 1.180
+++ config/tc-ppc.c 19 Nov 2011 21:37:21 -0000
@@ -1370,7 +1370,9 @@
#endif
#endif
#ifdef OBJ_ELF
-# ifdef TE_VXWORKS
+# ifdef TE_FreeBSD
+ return (ppc_obj64 ? "elf64-powerpc-freebsd" : "elf32-powerpc-freebsd");
+# elif TE_VXWORKS
return "elf32-powerpc-vxworks";
# else
return (target_big_endian