lose_these_too="${d30v_files} ${lose_these_too}"
fi
-m32r_files="cpu-m32r.c elf32-m32r.c"
-
-if ( echo $* | grep keep\-m32r > /dev/null ) ; then
- keep_these_too="${m32r_files} ${keep_these_too}"
-else
- lose_these_too="${m32r_files} ${lose_these_too}"
-fi
-
v850_files="cpu-v850.c elf32-v850.c"
if ( echo $* | grep keep\-v850 > /dev/null ) ; then
cpu-i386.c
cpu-i860.c
cpu-i960.c
+cpu-m32r.c
cpu-m68k.c
cpu-m88k.c
cpu-mips.c
elf32-hppa.h
elf32-i386.c
elf32-i860.c
+elf32-m32r.c
elf32-m68k.c
elf32-m88k.c
elf32-mips.c
done
fi
-m32r_files="ChangeLog Makefile.in config.bfd configure.in configure elf.c archures.c reloc.c targets.c bfd-in2.h libbfd.h"
-if ( echo $* | grep keep\-m32r > /dev/null ) ; then
- for i in $m32r_files ; do
- if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping m32r stuff in $i
- fi
- fi
- done
-else
- for i in $m32r_files ; do
- if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"m32r\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
- if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- if [ -n "${verbose}" ] ; then
- echo Caching $i in .Recover...
- fi
- mv $i .Recover
- fi
- mv new $i
- fi
- done
-fi
-
v850_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
if ( echo $* | grep keep\-v850 > /dev/null ) ; then
for i in $v850_files ; do
cpu-i386.o \
cpu-i860.o \
cpu-i960.o \
- $(start-sanitize-m32r) \
cpu-m32r.o \
- $(end-sanitize-m32r) \
cpu-m68k.o \
cpu-m88k.o \
cpu-mips.o \
elf32-hppa.o \
elf32-i386.o \
elf32-i860.o \
- $(start-sanitize-m32r) \
elf32-m32r.o \
- $(end-sanitize-m32r) \
elf32-m68k.o \
elf32-m88k.o \
elf32-mips.o \
elf32-target.h
end-sanitize-d30v:
-start-sanitize-m32r:
elf32-m32r.o: elf32-m32r.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
elf32-target.h
-end-sanitize-m32r:
start-sanitize-v850:
cpu-v850.o: cpu-v850.c
targ_underscore=yes
;;
-# start-sanitize-m32r
m32r-*-*)
targ_defvec=bfd_elf32_m32r_vec
;;
-# end-sanitize-m32r
m68*-apollo-*)
targ_defvec=apollocoff_vec
extern bfd_error_handler_type _bfd_error_handler;
-/* These routines allocate and free things on the BFD's obstack. */
+/* These routines allocate and free things on the BFD's objalloc. */
-PTR bfd_alloc PARAMS ((bfd *abfd, size_t size));
-PTR bfd_zalloc PARAMS ((bfd *abfd, size_t size));
-
-#define bfd_release(x,y) (void) obstack_free(&(x->memory),y)
+extern PTR bfd_alloc PARAMS ((bfd *, size_t));
+extern PTR bfd_zalloc PARAMS ((bfd *, size_t));
+extern void bfd_release PARAMS ((bfd *, PTR));
bfd * _bfd_create_empty_archive_element_shell PARAMS ((bfd *obfd));
bfd * _bfd_look_for_bfd_in_cache PARAMS ((bfd *arch_bfd, file_ptr index));
"BFD_RELOC_D30V_32_PCREL",
/* end-sanitize-d30v */
-/* start-sanitize-m32r */
"BFD_RELOC_M32R_24",
"BFD_RELOC_M32R_10_PCREL",
"BFD_RELOC_M32R_18_PCREL",
"BFD_RELOC_M32R_HI16_SLO",
"BFD_RELOC_M32R_LO16",
"BFD_RELOC_M32R_SDA16",
-/* end-sanitize-m32r */
-
/* start-sanitize-v850 */
"BFD_RELOC_V850_9_PCREL",
"BFD_RELOC_V850_22_PCREL",
extern const bfd_target bfd_elf32_little_generic_vec;
extern const bfd_target bfd_elf32_littlemips_vec;
extern const bfd_target bfd_elf64_littlemips_vec;
-/* start-sanitize-m32r */
extern const bfd_target bfd_elf32_m32r_vec;
-/* end-sanitize-m32r */
extern const bfd_target bfd_elf32_m68k_vec;
extern const bfd_target bfd_elf32_m88k_vec;
extern const bfd_target bfd_elf32_mn10200_vec;
#ifdef BFD64
&bfd_elf64_littlemips_vec,
#endif
-/* start-sanitize-m32r */
&bfd_elf32_m32r_vec,
-/* end-sanitize-m32r */
&bfd_elf32_mn10200_vec,
&bfd_elf32_mn10300_vec,
&bfd_elf32_m68k_vec,