This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA/PATCH] Add Mac OS X support to config.bfd
On Tue, Nov 12, 2002 at 08:28:22PM -0500, Klee Dienes wrote:
> Sure, I don't see why not. I suppose in theory the powerpc-*-x forms
> are more accurate, though I suspect it's unlikely to be a practical
> issue. Would you also be using i386-*-darwin/macos10/rhapsody as well?
This is what I committed.
Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -p -r1.125 -r1.126
--- config.bfd 6 Nov 2002 11:38:34 -0000 1.125
+++ config.bfd 13 Nov 2002 01:45:42 -0000 1.126
@@ -393,6 +393,11 @@ case "${targ}" in
targ_defvec=bfd_elf32_i386_vec
targ_selvecs="i386coff_vec i386aout_vec"
;;
+ i[3456]86-*-darwin* | i[3456]86-*-macos10* | i[3456]86-*-rhapsody*)
+ targ_defvec=mach_o_le_vec
+ targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
+ targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
+ ;;
i[3456]86-sequent-bsd*)
targ_defvec=i386dynix_vec
targ_underscore=yes
@@ -884,6 +889,11 @@ case "${targ}" in
targ_defvec=bfd_elf32_powerpc_vec
targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
+ ;;
+ powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
+ targ_defvec=mach_o_be_vec
+ targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
+ targ_archs="bfd_powerpc_arch bfd_rs6000_arch bfd_i386_arch"
;;
powerpc-*-macos* | powerpc-*-mpw*)
targ_defvec=pmac_xcoff_vec
--
Alan Modra
IBM OzLabs - Linux Technology Centre