This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Remove MPW support from BFD
- From: Stan Shebs <shebs at apple dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 26 Mar 2004 21:46:01 -0800
- Subject: Remove MPW support from BFD
I committed this patch to scrub BFD of MPW bits.
Stan
2004-03-26 Stan Shebs <shebs@apple.com>
Remove MPW support, no longer used.
* config.bfd (powerpc-*-mpw*): Remove configuration.
* mpw-config.in, mpw-make.sed: Remove files.
* ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.155
diff -p -r1.155 config.bfd
*** config.bfd 17 Mar 2004 00:46:24 -0000 1.155
--- config.bfd 27 Mar 2004 05:35:14 -0000
*************** case "${targ}" in
*** 969,975 ****
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
;;
powerpc-*-netware*)
--- 969,975 ----
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*)
targ_defvec=pmac_xcoff_vec
;;
powerpc-*-netware*)
Index: ecoffswap.h
===================================================================
RCS file: /cvs/src/src/bfd/ecoffswap.h,v
retrieving revision 1.7
diff -p -r1.7 ecoffswap.h
*** ecoffswap.h 19 Sep 2002 15:31:30 -0000 1.7
--- ecoffswap.h 27 Mar 2004 05:35:14 -0000
*************** ecoff_swap_fdr_out (abfd, intern_copy, e
*** 324,331 ****
#endif
}
- #ifndef MPW_C
-
/* Swap in the procedure descriptor record. */
static void
--- 324,329 ----
*************** ecoff_swap_pdr_out (abfd, intern_copy, e
*** 453,530 ****
abort ();
#endif
}
-
- #else /* MPW_C */
- /* Same routines, but with ECOFF_64 code removed, so ^&%$#&! MPW C doesn't
- corrupt itself and then freak out. */
- /* Swap in the procedure descriptor record. */
-
- static void
- ecoff_swap_pdr_in (abfd, ext_copy, intern)
- bfd *abfd;
- PTR ext_copy;
- PDR *intern;
- {
- struct pdr_ext ext[1];
-
- *ext = *(struct pdr_ext *) ext_copy;
-
- intern->adr = ECOFF_GET_OFF (abfd, ext->p_adr);
- intern->isym = H_GET_32 (abfd, ext->p_isym);
- intern->iline = H_GET_32 (abfd, ext->p_iline);
- intern->regmask = H_GET_32 (abfd, ext->p_regmask);
- intern->regoffset = H_GET_S32 (abfd, ext->p_regoffset);
- intern->iopt = H_GET_S32 (abfd, ext->p_iopt);
- intern->fregmask = H_GET_32 (abfd, ext->p_fregmask);
- intern->fregoffset = H_GET_S32 (abfd, ext->p_fregoffset);
- intern->frameoffset = H_GET_S32 (abfd, ext->p_frameoffset);
- intern->framereg = H_GET_16 (abfd, ext->p_framereg);
- intern->pcreg = H_GET_16 (abfd, ext->p_pcreg);
- intern->lnLow = H_GET_32 (abfd, ext->p_lnLow);
- intern->lnHigh = H_GET_32 (abfd, ext->p_lnHigh);
- intern->cbLineOffset = ECOFF_GET_OFF (abfd, ext->p_cbLineOffset);
-
- #ifdef TEST
- if (memcmp ((char *)ext, (char *)intern, sizeof (*intern)) != 0)
- abort ();
- #endif
- }
-
- /* Swap out the procedure descriptor record. */
-
- static void
- ecoff_swap_pdr_out (abfd, intern_copy, ext_ptr)
- bfd *abfd;
- const PDR *intern_copy;
- PTR ext_ptr;
- {
- struct pdr_ext *ext = (struct pdr_ext *) ext_ptr;
- PDR intern[1];
-
- /* Make it reasonable to do in-place. */
- *intern = *intern_copy;
-
- ECOFF_PUT_OFF (abfd, intern->adr, ext->p_adr);
- H_PUT_32 (abfd, intern->isym, ext->p_isym);
- H_PUT_32 (abfd, intern->iline, ext->p_iline);
- H_PUT_32 (abfd, intern->regmask, ext->p_regmask);
- H_PUT_32 (abfd, intern->regoffset, ext->p_regoffset);
- H_PUT_32 (abfd, intern->iopt, ext->p_iopt);
- H_PUT_32 (abfd, intern->fregmask, ext->p_fregmask);
- H_PUT_32 (abfd, intern->fregoffset, ext->p_fregoffset);
- H_PUT_32 (abfd, intern->frameoffset, ext->p_frameoffset);
- H_PUT_16 (abfd, intern->framereg, ext->p_framereg);
- H_PUT_16 (abfd, intern->pcreg, ext->p_pcreg);
- H_PUT_32 (abfd, intern->lnLow, ext->p_lnLow);
- H_PUT_32 (abfd, intern->lnHigh, ext->p_lnHigh);
- ECOFF_PUT_OFF (abfd, intern->cbLineOffset, ext->p_cbLineOffset);
-
- #ifdef TEST
- if (memcmp ((char *)ext, (char *)intern, sizeof (*intern)) != 0)
- abort ();
- #endif
- }
- #endif /* MPW_C */
/* Swap in a symbol record. */
--- 451,456 ----