mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-12 01:24:12 +08:00
Add missing prototypes
This commit is contained in:
@ -1,3 +1,14 @@
|
|||||||
|
2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
|
* sparclynx.c: Add missing prototypes.
|
||||||
|
* coff-mcore.c: Add missing prototypes.
|
||||||
|
* elf32-pj.c: Add missing prototypes.
|
||||||
|
* nlm32-sparc.c: Add missing prototypes.
|
||||||
|
* oasys.c: Add missing prototypes.
|
||||||
|
* pdp11.c: Add missing prototypes.
|
||||||
|
* pe-mips.c: Add missing prototypes.
|
||||||
|
* riscix.c: Add missing prototypes.
|
||||||
|
|
||||||
2001-08-27 Daniel Jacobowitz <drow@mvista.com>
|
2001-08-27 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
* elf32-i386.c: Add missing prototypes.
|
* elf32-i386.c: Add missing prototypes.
|
||||||
|
@ -52,6 +52,10 @@ static reloc_howto_type * mcore_coff_reloc_type_lookup
|
|||||||
static reloc_howto_type * coff_mcore_rtype_to_howto
|
static reloc_howto_type * coff_mcore_rtype_to_howto
|
||||||
PARAMS ((bfd *, asection *, struct internal_reloc *,
|
PARAMS ((bfd *, asection *, struct internal_reloc *,
|
||||||
struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *));
|
struct coff_link_hash_entry *, struct internal_syment *, bfd_vma *));
|
||||||
|
static void mcore_emit_base_file_entry
|
||||||
|
PARAMS ((struct bfd_link_info *, bfd *, asection *, bfd_vma));
|
||||||
|
static boolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *));
|
||||||
|
static struct bfd_link_hash_table * coff_mcore_link_hash_table_create PARAMS ((bfd *));
|
||||||
|
|
||||||
/* The NT loader points the toc register to &toc + 32768, in order to
|
/* The NT loader points the toc register to &toc + 32768, in order to
|
||||||
use the complete range of a 16-bit displacement. We have to adjust
|
use the complete range of a 16-bit displacement. We have to adjust
|
||||||
@ -217,6 +221,7 @@ mcore_hash_table;
|
|||||||
((mcore_hash_table *) ((info)->hash))
|
((mcore_hash_table *) ((info)->hash))
|
||||||
|
|
||||||
/* Create an MCore coff linker hash table. */
|
/* Create an MCore coff linker hash table. */
|
||||||
|
|
||||||
static struct bfd_link_hash_table *
|
static struct bfd_link_hash_table *
|
||||||
coff_mcore_link_hash_table_create (abfd)
|
coff_mcore_link_hash_table_create (abfd)
|
||||||
bfd * abfd;
|
bfd * abfd;
|
||||||
@ -244,6 +249,7 @@ coff_mcore_link_hash_table_create (abfd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Add an entry to the base file. */
|
/* Add an entry to the base file. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mcore_emit_base_file_entry (info, output_bfd, input_section, reloc_offset)
|
mcore_emit_base_file_entry (info, output_bfd, input_section, reloc_offset)
|
||||||
struct bfd_link_info * info;
|
struct bfd_link_info * info;
|
||||||
@ -352,6 +358,7 @@ coff_mcore_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
|
|||||||
|
|
||||||
/* Return true if this relocation should appear in the output .reloc section.
|
/* Return true if this relocation should appear in the output .reloc section.
|
||||||
This function is referenced in pe_mkobject in peicode.h. */
|
This function is referenced in pe_mkobject in peicode.h. */
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
in_reloc_p (abfd, howto)
|
in_reloc_p (abfd, howto)
|
||||||
bfd * abfd ATTRIBUTE_UNUSED;
|
bfd * abfd ATTRIBUTE_UNUSED;
|
||||||
|
@ -31,6 +31,8 @@ static reloc_howto_type *pj_elf_reloc_type_lookup
|
|||||||
PARAMS ((bfd *, bfd_reloc_code_real_type));
|
PARAMS ((bfd *, bfd_reloc_code_real_type));
|
||||||
static void pj_elf_info_to_howto
|
static void pj_elf_info_to_howto
|
||||||
PARAMS ((bfd *, arelent *, Elf_Internal_Rela *));
|
PARAMS ((bfd *, arelent *, Elf_Internal_Rela *));
|
||||||
|
static void pj_elf_final_write_processing
|
||||||
|
PARAMS ((bfd *, boolean));
|
||||||
|
|
||||||
static reloc_howto_type pj_elf_howto_table[] =
|
static reloc_howto_type pj_elf_howto_table[] =
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Support for 32-bit SPARC NLM (NetWare Loadable Module)
|
/* Support for 32-bit SPARC NLM (NetWare Loadable Module)
|
||||||
Copyright 1993, 1994, 2000 Free Software Foundation, Inc.
|
Copyright 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
@ -40,6 +40,8 @@ static boolean nlm_sparc_write_import
|
|||||||
PARAMS ((bfd *, asection *, arelent *));
|
PARAMS ((bfd *, asection *, arelent *));
|
||||||
static boolean nlm_sparc_write_external
|
static boolean nlm_sparc_write_external
|
||||||
PARAMS ((bfd *, bfd_size_type, asymbol *, struct reloc_and_sec *));
|
PARAMS ((bfd *, bfd_size_type, asymbol *, struct reloc_and_sec *));
|
||||||
|
static boolean nlm_sparc_write_export
|
||||||
|
PARAMS ((bfd *, asymbol *, bfd_vma));
|
||||||
|
|
||||||
enum reloc_type
|
enum reloc_type
|
||||||
{
|
{
|
||||||
@ -108,7 +110,8 @@ static reloc_howto_type nlm32_sparc_howto_table[] =
|
|||||||
|
|
||||||
/* Read a NetWare sparc reloc. */
|
/* Read a NetWare sparc reloc. */
|
||||||
|
|
||||||
struct nlm32_sparc_reloc_ext {
|
struct nlm32_sparc_reloc_ext
|
||||||
|
{
|
||||||
unsigned char offset[4];
|
unsigned char offset[4];
|
||||||
unsigned char addend[4];
|
unsigned char addend[4];
|
||||||
unsigned char type[1];
|
unsigned char type[1];
|
||||||
@ -147,7 +150,8 @@ nlm_sparc_read_reloc (abfd, sym, secp, rel)
|
|||||||
for (index = 0;
|
for (index = 0;
|
||||||
index < sizeof (nlm32_sparc_howto_table) / sizeof (reloc_howto_type);
|
index < sizeof (nlm32_sparc_howto_table) / sizeof (reloc_howto_type);
|
||||||
index++)
|
index++)
|
||||||
if (nlm32_sparc_howto_table[index].type == type) {
|
if (nlm32_sparc_howto_table[index].type == type)
|
||||||
|
{
|
||||||
rel->howto = &nlm32_sparc_howto_table[index];
|
rel->howto = &nlm32_sparc_howto_table[index];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -176,7 +180,8 @@ nlm_sparc_write_reloc (abfd, sec, rel)
|
|||||||
|
|
||||||
for (index = 0;
|
for (index = 0;
|
||||||
index < sizeof (nlm32_sparc_howto_table) / sizeof (reloc_howto_type);
|
index < sizeof (nlm32_sparc_howto_table) / sizeof (reloc_howto_type);
|
||||||
index++) {
|
index++)
|
||||||
|
{
|
||||||
tmp = &nlm32_sparc_howto_table[index];
|
tmp = &nlm32_sparc_howto_table[index];
|
||||||
|
|
||||||
if (tmp->rightshift == rel->howto->rightshift
|
if (tmp->rightshift == rel->howto->rightshift
|
||||||
@ -185,7 +190,8 @@ nlm_sparc_write_reloc (abfd, sec, rel)
|
|||||||
&& tmp->pc_relative == rel->howto->pc_relative
|
&& tmp->pc_relative == rel->howto->pc_relative
|
||||||
&& tmp->bitpos == rel->howto->bitpos
|
&& tmp->bitpos == rel->howto->bitpos
|
||||||
&& tmp->src_mask == rel->howto->src_mask
|
&& tmp->src_mask == rel->howto->src_mask
|
||||||
&& tmp->dst_mask == rel->howto->dst_mask) {
|
&& tmp->dst_mask == rel->howto->dst_mask)
|
||||||
|
{
|
||||||
type = tmp->type;
|
type = tmp->type;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -193,14 +199,12 @@ nlm_sparc_write_reloc (abfd, sec, rel)
|
|||||||
if (type == -1)
|
if (type == -1)
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
/*
|
/* Netware wants a list of relocs for each address.
|
||||||
* Netware wants a list of relocs for each address.
|
Format is:
|
||||||
* Format is:
|
long offset
|
||||||
* long offset
|
long addend
|
||||||
* long addend
|
char type
|
||||||
* char type
|
That should be it. */
|
||||||
* That should be it.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* The value we write out is the offset into the appropriate
|
/* The value we write out is the offset into the appropriate
|
||||||
segment. This offset is the section vma, adjusted by the vma of
|
segment. This offset is the section vma, adjusted by the vma of
|
||||||
@ -240,30 +244,27 @@ nlm_sparc_mangle_relocs (abfd, sec, data, offset, count)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read a NetWare sparc import record */
|
/* Read a NetWare sparc import record. */
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
nlm_sparc_read_import (abfd, sym)
|
nlm_sparc_read_import (abfd, sym)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
nlmNAME(symbol_type) *sym;
|
nlmNAME(symbol_type) *sym;
|
||||||
{
|
{
|
||||||
struct nlm_relent *nlm_relocs; /* relocation records for symbol */
|
struct nlm_relent *nlm_relocs; /* Relocation records for symbol. */
|
||||||
bfd_size_type rcount; /* number of relocs */
|
bfd_size_type rcount; /* Number of relocs. */
|
||||||
bfd_byte temp[NLM_TARGET_LONG_SIZE]; /* temporary 32-bit value */
|
bfd_byte temp[NLM_TARGET_LONG_SIZE]; /* Temporary 32-bit value. */
|
||||||
unsigned char symlength; /* length of symbol name */
|
unsigned char symlength; /* Length of symbol name. */
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
/*
|
/* First, read in the number of relocation
|
||||||
* First, read in the number of relocation
|
entries for this symbol. */
|
||||||
* entries for this symbol
|
|
||||||
*/
|
|
||||||
if (bfd_read ((PTR) temp, 4, 1, abfd) != 4)
|
if (bfd_read ((PTR) temp, 4, 1, abfd) != 4)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
rcount = bfd_get_32 (abfd, temp);
|
rcount = bfd_get_32 (abfd, temp);
|
||||||
|
|
||||||
/*
|
/* Next, read in the length of the symbol. */
|
||||||
* Next, read in the length of the symbol
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (bfd_read ((PTR) &symlength, sizeof (symlength), 1, abfd)
|
if (bfd_read ((PTR) &symlength, sizeof (symlength), 1, abfd)
|
||||||
!= sizeof (symlength))
|
!= sizeof (symlength))
|
||||||
@ -273,9 +274,7 @@ nlm_sparc_read_import (abfd, sym)
|
|||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/*
|
/* Then read in the symbol. */
|
||||||
* Then read in the symbol
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (bfd_read (name, symlength, 1, abfd) != symlength)
|
if (bfd_read (name, symlength, 1, abfd) != symlength)
|
||||||
return false;
|
return false;
|
||||||
@ -285,9 +284,7 @@ nlm_sparc_read_import (abfd, sym)
|
|||||||
sym -> symbol.value = 0;
|
sym -> symbol.value = 0;
|
||||||
sym -> symbol.section = bfd_und_section_ptr;
|
sym -> symbol.section = bfd_und_section_ptr;
|
||||||
|
|
||||||
/*
|
/* Next, start reading in the relocs. */
|
||||||
* Next, start reading in the relocs.
|
|
||||||
*/
|
|
||||||
|
|
||||||
nlm_relocs = ((struct nlm_relent *)
|
nlm_relocs = ((struct nlm_relent *)
|
||||||
bfd_alloc (abfd, rcount * sizeof (struct nlm_relent)));
|
bfd_alloc (abfd, rcount * sizeof (struct nlm_relent)));
|
||||||
@ -307,6 +304,7 @@ nlm_sparc_read_import (abfd, sym)
|
|||||||
nlm_relocs++;
|
nlm_relocs++;
|
||||||
sym -> rcnt++;
|
sym -> rcnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,13 +323,13 @@ nlm_sparc_write_import (abfd, sec, rel)
|
|||||||
bss = bfd_get_section_by_name (abfd, NLM_UNINITIALIZED_DATA_NAME);
|
bss = bfd_get_section_by_name (abfd, NLM_UNINITIALIZED_DATA_NAME);
|
||||||
symsec = (*rel->sym_ptr_ptr)->section;
|
symsec = (*rel->sym_ptr_ptr)->section;
|
||||||
|
|
||||||
if (symsec == code) {
|
if (symsec == code)
|
||||||
base = 0;
|
base = 0;
|
||||||
} else if (symsec == data) {
|
else if (symsec == data)
|
||||||
base = bfd_section_size (abfd, code);
|
base = bfd_section_size (abfd, code);
|
||||||
} else if (symsec == bss) {
|
else if (symsec == bss)
|
||||||
base = bfd_section_size (abfd, code) + bfd_section_size (abfd, data);
|
base = bfd_section_size (abfd, code) + bfd_section_size (abfd, data);
|
||||||
} else
|
else
|
||||||
base = 0;
|
base = 0;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -61,7 +61,10 @@ static boolean oasys_find_nearest_line
|
|||||||
static int oasys_generic_stat_arch_elt PARAMS ((bfd *, struct stat *));
|
static int oasys_generic_stat_arch_elt PARAMS ((bfd *, struct stat *));
|
||||||
static int oasys_sizeof_headers PARAMS ((bfd *, boolean));
|
static int oasys_sizeof_headers PARAMS ((bfd *, boolean));
|
||||||
|
|
||||||
/* Read in all the section data and relocation stuff too */
|
long oasys_get_symtab PARAMS ((bfd *, asymbol **));
|
||||||
|
long oasys_canonicalize_reloc PARAMS ((bfd *, sec_ptr, arelent **, asymbol **));
|
||||||
|
|
||||||
|
/* Read in all the section data and relocation stuff too. */
|
||||||
PROTO (static boolean, oasys_slurp_section_data, (bfd * CONST abfd));
|
PROTO (static boolean, oasys_slurp_section_data, (bfd * CONST abfd));
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
@ -240,9 +243,6 @@ oasys_get_symtab_upper_bound (abfd)
|
|||||||
return (abfd->symcount + 1) * (sizeof (oasys_symbol_type *));
|
return (abfd->symcount + 1) * (sizeof (oasys_symbol_type *));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
*/
|
|
||||||
|
|
||||||
extern const bfd_target oasys_vec;
|
extern const bfd_target oasys_vec;
|
||||||
|
|
||||||
long
|
long
|
||||||
|
@ -363,6 +363,12 @@ static void adjust_o_magic PARAMS ((bfd *, struct internal_exec *));
|
|||||||
static void adjust_z_magic PARAMS ((bfd *, struct internal_exec *));
|
static void adjust_z_magic PARAMS ((bfd *, struct internal_exec *));
|
||||||
static void adjust_n_magic PARAMS ((bfd *, struct internal_exec *));
|
static void adjust_n_magic PARAMS ((bfd *, struct internal_exec *));
|
||||||
|
|
||||||
|
static int pdp11_aout_write_headers PARAMS ((bfd *, struct internal_exec *));
|
||||||
|
void pdp11_aout_swap_reloc_out PARAMS ((bfd *, arelent *, struct pdp11_aout_reloc_external *));
|
||||||
|
void pdp11_aout_swap_reloc_in
|
||||||
|
PARAMS ((bfd *, struct pdp11_aout_reloc_external *, arelent *,
|
||||||
|
bfd_size_type, asymbol **, bfd_size_type));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
SUBSECTION
|
SUBSECTION
|
||||||
Relocations
|
Relocations
|
||||||
|
@ -54,6 +54,15 @@ static void mips_adjust_reloc_in PARAMS ((bfd *,
|
|||||||
static void mips_adjust_reloc_out PARAMS ((bfd *, const arelent *,
|
static void mips_adjust_reloc_out PARAMS ((bfd *, const arelent *,
|
||||||
struct internal_reloc *));
|
struct internal_reloc *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static boolean in_reloc_p PARAMS ((bfd *, reloc_howto_type *));
|
||||||
|
static reloc_howto_type * coff_mips_reloc_type_lookup PARAMS ((bfd *, bfd_reloc_code_real_type));
|
||||||
|
static void mips_swap_reloc_in PARAMS ((bfd *, PTR, PTR));
|
||||||
|
static unsigned int mips_swap_reloc_out PARAMS ((bfd *, PTR, PTR));
|
||||||
|
static boolean coff_pe_mips_relocate_section
|
||||||
|
PARAMS ((bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
|
||||||
|
struct internal_reloc *, struct internal_syment *, asection **));
|
||||||
|
|
||||||
#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
|
#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2)
|
||||||
/* The page size is a guess based on ELF. */
|
/* The page size is a guess based on ELF. */
|
||||||
|
|
||||||
@ -169,7 +178,8 @@ coff_mips_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd,
|
|||||||
/* Return true if this relocation should
|
/* Return true if this relocation should
|
||||||
appear in the output .reloc section. */
|
appear in the output .reloc section. */
|
||||||
|
|
||||||
static boolean in_reloc_p(abfd, howto)
|
static boolean
|
||||||
|
in_reloc_p (abfd, howto)
|
||||||
bfd * abfd ATTRIBUTE_UNUSED;
|
bfd * abfd ATTRIBUTE_UNUSED;
|
||||||
reloc_howto_type *howto;
|
reloc_howto_type *howto;
|
||||||
{
|
{
|
||||||
|
18
bfd/riscix.c
18
bfd/riscix.c
@ -143,6 +143,24 @@ riscix_fix_pcrel_26_done PARAMS ((bfd *, arelent *, asymbol *, PTR,
|
|||||||
static bfd_reloc_status_type
|
static bfd_reloc_status_type
|
||||||
riscix_fix_pcrel_26 PARAMS ((bfd *, arelent *, asymbol *, PTR,
|
riscix_fix_pcrel_26 PARAMS ((bfd *, arelent *, asymbol *, PTR,
|
||||||
asection *, bfd *, char **));
|
asection *, bfd *, char **));
|
||||||
|
static const bfd_target *
|
||||||
|
MY (object_p) PARAMS ((bfd *));
|
||||||
|
|
||||||
|
reloc_howto_type *
|
||||||
|
riscix_reloc_type_lookup PARAMS ((bfd *, bfd_reloc_code_real_type));
|
||||||
|
|
||||||
|
void
|
||||||
|
riscix_swap_std_reloc_out PARAMS ((bfd *, arelent *, struct reloc_std_external *));
|
||||||
|
|
||||||
|
boolean
|
||||||
|
riscix_squirt_out_relocs PARAMS ((bfd *, asection *));
|
||||||
|
|
||||||
|
long
|
||||||
|
MY (canonicalize_reloc) PARAMS ((bfd *, sec_ptr, arelent **, asymbol **));
|
||||||
|
|
||||||
|
const bfd_target *
|
||||||
|
riscix_some_aout_object_p PARAMS ((bfd *, struct internal_exec *, const bfd_target *(*) (bfd *)));
|
||||||
|
|
||||||
|
|
||||||
static reloc_howto_type riscix_std_reloc_howto[] = {
|
static reloc_howto_type riscix_std_reloc_howto[] = {
|
||||||
/* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone */
|
/* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* BFD support for Sparc binaries under LynxOS.
|
/* BFD support for Sparc binaries under LynxOS.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1997, 1998, 2000,
|
||||||
Free Software Foundation, Inc.
|
2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
|
|
||||||
@ -43,6 +43,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
#include "aout/stab_gnu.h"
|
#include "aout/stab_gnu.h"
|
||||||
#include "aout/ar.h"
|
#include "aout/ar.h"
|
||||||
|
|
||||||
|
void NAME (lynx,set_arch_mach) PARAMS ((bfd *, int));
|
||||||
|
static void choose_reloc_size PARAMS ((bfd *));
|
||||||
|
static boolean NAME (aout,sparclynx_write_object_contents) PARAMS ((bfd *));
|
||||||
|
|
||||||
/* This is needed to reject a NewsOS file, e.g. in
|
/* This is needed to reject a NewsOS file, e.g. in
|
||||||
gdb/testsuite/gdb.t10/crossload.exp. <kingdon@cygnus.com>
|
gdb/testsuite/gdb.t10/crossload.exp. <kingdon@cygnus.com>
|
||||||
I needed to add M_UNKNOWN to recognize a 68000 object, so this will
|
I needed to add M_UNKNOWN to recognize a 68000 object, so this will
|
||||||
@ -52,8 +56,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
|| (mtype) == M_68020 \
|
|| (mtype) == M_68020 \
|
||||||
|| (mtype) == M_SPARC)
|
|| (mtype) == M_SPARC)
|
||||||
|
|
||||||
/*
|
/* The file @code{aoutf1.h} contains the code for BFD's
|
||||||
The file @code{aoutf1.h} contains the code for BFD's
|
|
||||||
a.out back end. Control over the generated back end is given by these
|
a.out back end. Control over the generated back end is given by these
|
||||||
two preprocessor names:
|
two preprocessor names:
|
||||||
@table @code
|
@table @code
|
||||||
@ -70,12 +73,7 @@ arithmetic, not just those to a 64bit target.
|
|||||||
@item TARGETNAME
|
@item TARGETNAME
|
||||||
The name put into the target vector.
|
The name put into the target vector.
|
||||||
@item
|
@item
|
||||||
@end table
|
@end table */
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*SUPPRESS558*/
|
|
||||||
/*SUPPRESS529*/
|
|
||||||
|
|
||||||
void
|
void
|
||||||
NAME(lynx,set_arch_mach) (abfd, machtype)
|
NAME(lynx,set_arch_mach) (abfd, machtype)
|
||||||
@ -85,9 +83,9 @@ NAME(lynx,set_arch_mach) (abfd, machtype)
|
|||||||
/* Determine the architecture and machine type of the object file. */
|
/* Determine the architecture and machine type of the object file. */
|
||||||
enum bfd_architecture arch;
|
enum bfd_architecture arch;
|
||||||
long machine;
|
long machine;
|
||||||
|
|
||||||
switch (machtype)
|
switch (machtype)
|
||||||
{
|
{
|
||||||
|
|
||||||
case M_UNKNOWN:
|
case M_UNKNOWN:
|
||||||
/* Some Sun3s make magic numbers without cpu types in them, so
|
/* Some Sun3s make magic numbers without cpu types in them, so
|
||||||
we'll default to the 68000. */
|
we'll default to the 68000. */
|
||||||
@ -140,7 +138,8 @@ NAME(lynx,set_arch_mach) (abfd, machtype)
|
|||||||
NAME(lynx,set_arch_mach) (ABFD, N_MACHTYPE (EXEC)); \
|
NAME(lynx,set_arch_mach) (ABFD, N_MACHTYPE (EXEC)); \
|
||||||
choose_reloc_size(ABFD);
|
choose_reloc_size(ABFD);
|
||||||
|
|
||||||
/* 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
|
||||||
choose_reloc_size (abfd)
|
choose_reloc_size (abfd)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
@ -206,6 +205,8 @@ NAME(aout,sparclynx_write_object_contents) (abfd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define MY_set_sizes sparclynx_set_sizes
|
#define MY_set_sizes sparclynx_set_sizes
|
||||||
|
static boolean sparclynx_set_sizes PARAMS ((bfd *));
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
sparclynx_set_sizes (abfd)
|
sparclynx_set_sizes (abfd)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
|
Reference in New Issue
Block a user