Eliminated uses of DEFUN. Added seclet_link element to vectors.

This commit is contained in:
Ken Raeburn
1993-02-11 19:26:40 +00:00
parent 6d0b80461b
commit 98e1c9e572

View File

@ -24,12 +24,11 @@
#define SET_ARCH_MACH(ABFD, EXEC) \ #define SET_ARCH_MACH(ABFD, EXEC) \
MY(set_arch_mach)(ABFD, N_MACHTYPE (EXEC)); \ MY(set_arch_mach)(ABFD, N_MACHTYPE (EXEC)); \
MY(choose_reloc_size)(ABFD); MY(choose_reloc_size)(ABFD);
void DEFUN(MY(set_arch_mach), (abfd, machtype), void MY(set_arch_mach) PARAMS ((bfd *abfd, int machtype));
bfd *abfd AND int machtype); static void MY(choose_reloc_size) PARAMS ((bfd *abfd));
static void DEFUN(MY(choose_reloc_size),(abfd),bfd *abfd);
#define MY_write_object_contents MY(write_object_contents) #define MY_write_object_contents MY(write_object_contents)
static boolean DEFUN(MY(write_object_contents), (abfd), bfd *abfd); static boolean MY(write_object_contents) PARAMS ((bfd *abfd));
#define MY_reloc_howto_type_lookup MY(reloc_howto_type_lookup) #define MY_reloc_howto_type_lookup MY(reloc_howto_type_lookup)
#define MY_canonicalize_reloc MY(canonicalize_reloc) #define MY_canonicalize_reloc MY(canonicalize_reloc)
@ -44,8 +43,9 @@ static boolean DEFUN(MY(write_object_contents), (abfd), bfd *abfd);
* Also, to reduce space, should ifdef the individual cases if MINIMIZE=1. * Also, to reduce space, should ifdef the individual cases if MINIMIZE=1.
*/ */
void void
DEFUN(MY(set_arch_mach), (abfd, machtype), MY(set_arch_mach) (abfd, machtype)
bfd *abfd AND int machtype) bfd *abfd;
int machtype;
{ {
enum bfd_architecture arch; enum bfd_architecture arch;
long machine; long machine;
@ -105,8 +105,8 @@ DEFUN(MY(set_arch_mach), (abfd, machtype),
/* Determine the size of a relocation entry, based on the architecture */ /* Determine the size of a relocation entry, based on the architecture */
static void static void
DEFUN(MY(choose_reloc_size),(abfd), MY(choose_reloc_size) (abfd)
bfd *abfd) bfd *abfd;
{ {
switch (bfd_get_arch(abfd)) { switch (bfd_get_arch(abfd)) {
case bfd_arch_sparc: case bfd_arch_sparc:
@ -125,8 +125,8 @@ DEFUN(MY(choose_reloc_size),(abfd),
file header, symbols, and relocation. */ file header, symbols, and relocation. */
static boolean static boolean
DEFUN(MY(write_object_contents), (abfd), MY(write_object_contents) (abfd)
bfd *abfd) bfd *abfd;
{ {
struct external_exec exec_bytes; struct external_exec exec_bytes;
struct internal_exec *execp = exec_hdr (abfd); struct internal_exec *execp = exec_hdr (abfd);
@ -192,13 +192,13 @@ DEFUN(MY(write_object_contents), (abfd),
* when the low bits are added at run time. * when the low bits are added at run time.
*/ */
bfd_reloc_status_type bfd_reloc_status_type
DEFUN(mips_fix_hi16_s, (abfd,reloc_entry,symbol,data,input_section,output_bfd), mips_fix_hi16_s (abfd,reloc_entry,symbol,data,input_section,output_bfd)
bfd *abfd AND bfd *abfd;
arelent *reloc_entry AND arelent *reloc_entry;
struct symbol_cache_entry *symbol AND struct symbol_cache_entry *symbol;
PTR data AND PTR data;
asection *input_section AND asection *input_section;
bfd *output_bfd) bfd *output_bfd;
{ {
bfd_vma relocation; bfd_vma relocation;
@ -394,6 +394,7 @@ bfd_target aout_mips_little_vec =
MY_bfd_debug_info_accumulate, MY_bfd_debug_info_accumulate,
bfd_generic_get_relocated_section_contents, bfd_generic_get_relocated_section_contents,
bfd_generic_relax_section, bfd_generic_relax_section,
bfd_generic_seclet_link,
MY_reloc_howto_type_lookup, MY_reloc_howto_type_lookup,
MY_make_debug_symbol, MY_make_debug_symbol,
(PTR) MY_backend_data, (PTR) MY_backend_data,
@ -450,6 +451,7 @@ bfd_target aout_mips_big_vec =
MY_bfd_debug_info_accumulate, MY_bfd_debug_info_accumulate,
bfd_generic_get_relocated_section_contents, bfd_generic_get_relocated_section_contents,
bfd_generic_relax_section, bfd_generic_relax_section,
bfd_generic_seclet_link,
MY_reloc_howto_type_lookup, MY_reloc_howto_type_lookup,
MY_make_debug_symbol, MY_make_debug_symbol,
(PTR) MY_backend_data, (PTR) MY_backend_data,