aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/cf-m68klynx.c6
-rw-r--r--bfd/cpu-h8300.c103
3 files changed, 60 insertions, 55 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index eba5597..6357958 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,11 @@
Tue Jan 17 10:52:32 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
+ * bfd-in.h (bfd_byte, reloc_howto_type): Define here, not...
+ * reloc.c (bfd_byte, reloc_howto_type): here.
+ * Changed all occurrences of ``const struct reloc_howto_struct''
+ to be ``reloc_howto_type'' instead.
+ * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt.
+
* opncls.c (bfd_openstreamr): New function.
* bfd-in2.h: Rebuilt.
diff --git a/bfd/cf-m68klynx.c b/bfd/cf-m68klynx.c
index 0a4dc09..e66dd11 100644
--- a/bfd/cf-m68klynx.c
+++ b/bfd/cf-m68klynx.c
@@ -44,7 +44,7 @@ struct internal_syment;
static bfd_reloc_status_type _bfd_m68klynx_special_fn
PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **));
static boolean lynx_link_add_symbols PARAMS ((bfd *, struct bfd_link_info *));
-static const struct reloc_howto_struct *coff_m68k_lynx_rtype_to_howto
+static reloc_howto_type *coff_m68k_lynx_rtype_to_howto
PARAMS ((bfd *, asection *, struct internal_reloc *,
struct coff_link_hash_entry *, struct internal_syment *,
bfd_vma *));
@@ -219,7 +219,7 @@ lynx_link_add_symbols (abfd, info)
coff-m68k.c, because it uses RTYPE2HOWTO. */
/*ARGSUSED*/
-static const struct reloc_howto_struct *
+static reloc_howto_type *
coff_m68k_lynx_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
bfd *abfd;
asection *sec;
@@ -229,7 +229,7 @@ coff_m68k_lynx_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
bfd_vma *addendp;
{
arelent relent;
- const struct reloc_howto_struct *howto;
+ reloc_howto_type *howto;
RTYPE2HOWTO (&relent, rel);
diff --git a/bfd/cpu-h8300.c b/bfd/cpu-h8300.c
index 6498478..3197205 100644
--- a/bfd/cpu-h8300.c
+++ b/bfd/cpu-h8300.c
@@ -1,5 +1,5 @@
/* BFD library support routines for the Hitachi H8/300 architecture.
- Copyright (C) 1990-1991 Free Software Foundation, Inc.
+ Copyright (C) 1990, 91, 92, 93, 94 Free Software Foundation, Inc.
Hacked by Steve Chamberlain of Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -22,19 +22,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "sysdep.h"
#include "libbfd.h"
+#if 0 /* not used currently */
/*
Relocations for the H8
*/
static bfd_reloc_status_type
-DEFUN (howto16_callback, (abfd, reloc_entry, symbol_in, data,
- ignore_input_section, ignore_bfd),
- bfd * abfd AND
- arelent * reloc_entry AND
- struct symbol_cache_entry *symbol_in AND
- PTR data AND
- asection * ignore_input_section AND
- bfd * ignore_bfd)
+howto16_callback (abfd, reloc_entry, symbol_in, data,
+ ignore_input_section, ignore_bfd)
+ bfd * abfd;
+ arelent * reloc_entry;
+ struct symbol_cache_entry *symbol_in;
+ PTR data;
+ asection * ignore_input_section;
+ bfd * ignore_bfd;
{
long relocation = 0;
bfd_vma addr = reloc_entry->address;
@@ -50,14 +51,14 @@ DEFUN (howto16_callback, (abfd, reloc_entry, symbol_in, data,
static bfd_reloc_status_type
-DEFUN (howto8_callback, (abfd, reloc_entry, symbol_in, data,
- ignore_input_section, ignore_bfd),
- bfd * abfd AND
- arelent * reloc_entry AND
- struct symbol_cache_entry *symbol_in AND
- PTR data AND
- asection * ignore_input_section AND
- bfd * ignore_bfd)
+howto8_callback (abfd, reloc_entry, symbol_in, data,
+ ignore_input_section, ignore_bfd)
+ bfd * abfd;
+ arelent * reloc_entry;
+ struct symbol_cache_entry *symbol_in;
+ PTR data;
+ asection * ignore_input_section;
+ bfd * ignore_bfd;
{
long relocation = 0;
bfd_vma addr = reloc_entry->address;
@@ -73,14 +74,14 @@ DEFUN (howto8_callback, (abfd, reloc_entry, symbol_in, data,
static bfd_reloc_status_type
-DEFUN (howto8_FFnn_callback, (abfd, reloc_entry, symbol_in, data,
- ignore_input_section, ignore_bfd),
- bfd * abfd AND
- arelent * reloc_entry AND
- struct symbol_cache_entry *symbol_in AND
- PTR data AND
- asection * ignore_input_section AND
- bfd * ignore_bfd)
+howto8_FFnn_callback (abfd, reloc_entry, symbol_in, data,
+ ignore_input_section, ignore_bfd)
+ bfd * abfd;
+ arelent * reloc_entry;
+ struct symbol_cache_entry *symbol_in;
+ PTR data;
+ asection * ignore_input_section;
+ bfd * ignore_bfd;
{
long relocation = 0;
bfd_vma addr = reloc_entry->address;
@@ -96,14 +97,14 @@ DEFUN (howto8_FFnn_callback, (abfd, reloc_entry, symbol_in, data,
}
static bfd_reloc_status_type
-DEFUN (howto8_pcrel_callback, (abfd, reloc_entry, symbol_in, data,
- ignore_input_section, ignore_bfd),
- bfd * abfd AND
- arelent * reloc_entry AND
- struct symbol_cache_entry *symbol_in AND
- PTR data AND
- asection * ignore_input_section AND
- bfd * ignore_bfd)
+howto8_pcrel_callback (abfd, reloc_entry, symbol_in, data,
+ ignore_input_section, ignore_bfd)
+ bfd * abfd;
+ arelent * reloc_entry;
+ struct symbol_cache_entry *symbol_in;
+ PTR data;
+ asection * ignore_input_section;
+ bfd * ignore_bfd;
{
long relocation = 0;
bfd_vma addr = reloc_entry->address;
@@ -117,8 +118,6 @@ DEFUN (howto8_pcrel_callback, (abfd, reloc_entry, symbol_in, data,
return bfd_reloc_ok;
}
-
-
static reloc_howto_type howto_16
= NEWHOWTO (howto16_callback, "abs16", 1, false, false);
static reloc_howto_type howto_8
@@ -130,12 +129,11 @@ static reloc_howto_type howto_8_FFnn
static reloc_howto_type howto_8_pcrel
= NEWHOWTO (howto8_pcrel_callback, "pcrel8", 0, false, true);
-
-static CONST struct reloc_howto_struct *
-DEFUN (local_bfd_reloc_type_lookup, (arch, code),
- CONST struct bfd_arch_info *arch AND
- bfd_reloc_code_real_type code)
- {
+static reloc_howto_type *
+local_bfd_reloc_type_lookup (arch, code)
+ CONST struct bfd_arch_info *arch;
+ bfd_reloc_code_real_type code;
+{
switch (code)
{
case BFD_RELOC_16:
@@ -150,15 +148,16 @@ DEFUN (local_bfd_reloc_type_lookup, (arch, code),
return (reloc_howto_type *) NULL;
}
}
+#endif
int bfd_default_scan_num_mach ();
static boolean
-DEFUN (h8300_scan, (info, string),
- CONST struct bfd_arch_info *info AND
- CONST char *string)
+h8300_scan (info, string)
+ CONST struct bfd_arch_info *info;
+ CONST char *string;
{
- if (*string != 'h' && *string == 'H')
+ if (*string != 'h' && *string != 'H')
return false;
string++;
@@ -180,7 +179,7 @@ DEFUN (h8300_scan, (info, string),
string++;
if (*string == '-')
string++;
- if (*string == 'h' && *string == 'H')
+ if (*string == 'h' || *string == 'H')
{
return (info->mach == bfd_mach_h8300h);
}
@@ -191,14 +190,14 @@ DEFUN (h8300_scan, (info, string),
}
-/* This routine is provided two arch_infos and works out the i960
+/* This routine is provided two arch_infos and works out the
machine which would be compatible with both and returns a pointer
to its info structure */
-CONST bfd_arch_info_type *
-DEFUN (compatible, (in, out),
- CONST bfd_arch_info_type * in AND
- CONST bfd_arch_info_type * out)
+static CONST bfd_arch_info_type *
+compatible (in, out)
+ CONST bfd_arch_info_type * in;
+ CONST bfd_arch_info_type * out;
{
/* If the output is non-H and the input is -H, that's bad */
if (in->mach == bfd_mach_h8300h &&
@@ -249,7 +248,7 @@ static bfd_arch_info_type h8300h_info_struct =
};
void
-DEFUN_VOID (bfd_h8300_arch)
+bfd_h8300_arch()
{
bfd_arch_linkin (&h8300_info_struct);
bfd_arch_linkin (&h8300h_info_struct);