X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fcoff-mcore.c;h=8ddd06acf5abbd9c173f2672a9e302cdbd3c0c24;hb=dc810e3900d47ab2eea86d50231ff2e70b596847;hp=f5763b5affa310117d756c966ff5dd59b0a4d60b;hpb=b653e1b1521ac68fc398311345fe7df54803f1ec;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/coff-mcore.c b/bfd/coff-mcore.c index f5763b5aff..8ddd06acf5 100644 --- a/bfd/coff-mcore.c +++ b/bfd/coff-mcore.c @@ -1,5 +1,5 @@ /* BFD back-end for Motorola MCore COFF/PE - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -52,6 +52,10 @@ static reloc_howto_type * mcore_coff_reloc_type_lookup static reloc_howto_type * coff_mcore_rtype_to_howto PARAMS ((bfd *, asection *, struct internal_reloc *, 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 use the complete range of a 16-bit displacement. We have to adjust @@ -217,13 +221,14 @@ mcore_hash_table; ((mcore_hash_table *) ((info)->hash)) /* Create an MCore coff linker hash table. */ + static struct bfd_link_hash_table * coff_mcore_link_hash_table_create (abfd) bfd * abfd; { mcore_hash_table * ret; - ret = ((mcore_hash_table *) bfd_alloc (abfd, sizeof (* ret))); + ret = (mcore_hash_table *) bfd_alloc (abfd, (bfd_size_type) sizeof (* ret)); if (ret == (mcore_hash_table *) NULL) return NULL; @@ -244,6 +249,7 @@ coff_mcore_link_hash_table_create (abfd) } /* Add an entry to the base file. */ + static void mcore_emit_base_file_entry (info, output_bfd, input_section, reloc_offset) 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. This function is referenced in pe_mkobject in peicode.h. */ + static boolean in_reloc_p (abfd, howto) bfd * abfd ATTRIBUTE_UNUSED;