2001-01-23 Kazu Hirata <kazu@hxi.com>

* coff64-rs6000.c: Fix formatting.
	* coff-arm.c: Likewise.
	* coffgen.c: Likewise.
	* cofflink.c: Likewise.
	* coff-mcore.c: Likewise.
	* coff-mips.c: Likewise.
	* coff-pmac.c: Likewise.
	* coff-ppc.c: Likewise.
	* coff-rs6000.c: Likewise.
	* elf32.c: Likewise.
	* elf32-fr30.c: Likewise.
	* elf32-i370.c: Likewise.
	* elf32-i860.c: Likewise.
	* elf32-m32r.c: Likewise.
	* elf32-m68k.c: Likewise.
	* elf32-mcore.c: Likewise.
	* elf32-ppc.c: Likewise.
	* elf32-sh.c: Likewise.
	* elf32-v850.c: Likewise.
	* elf64-alpha.c: Likewise.
	* elf64-sparc.c: Likewise.
	* elflink.c: Likewise.
	* elflink.h: Likewise.
	* elf-m10200.c: Likewise.
	* elf-m10300.c: Likewise.
	* elfxx-ia64.c: Likewise.
This commit is contained in:
Kazu Hirata 2001-01-23 11:45:53 +00:00
parent 70256ad8ae
commit b653e1b152
27 changed files with 29 additions and 81 deletions

View file

@ -1,3 +1,32 @@
2001-01-23 Kazu Hirata <kazu@hxi.com>
* coff64-rs6000.c: Fix formatting.
* coff-arm.c: Likewise.
* coffgen.c: Likewise.
* cofflink.c: Likewise.
* coff-mcore.c: Likewise.
* coff-mips.c: Likewise.
* coff-pmac.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* elf32.c: Likewise.
* elf32-fr30.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-i860.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-v850.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-sparc.c: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elf-m10200.c: Likewise.
* elf-m10300.c: Likewise.
* elfxx-ia64.c: Likewise.
2001-01-22 Bo Thorsen <bo@suse.de>
* elf64-x86-64.c: Added PIC support for X86-64.

View file

@ -992,7 +992,6 @@ insert_thumb_branch (br_insn, rel_off)
return br_insn;
}
static struct coff_link_hash_entry *
find_thumb_glue (info, name, input_bfd)
@ -2550,4 +2549,3 @@ extern const bfd_target TARGET_BIG_SYM ;
/* Target vectors. */
CREATE_LITTLE_COFF_TARGET_VEC (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, D_PAGED, EXTRA_S_FLAGS, TARGET_UNDERSCORE, & TARGET_BIG_SYM)
CREATE_BIG_COFF_TARGET_VEC (TARGET_BIG_SYM, TARGET_BIG_NAME, D_PAGED, EXTRA_S_FLAGS, TARGET_UNDERSCORE, & TARGET_LITTLE_SYM)

View file

@ -65,7 +65,6 @@ static reloc_howto_type * coff_mcore_rtype_to_howto
/* In case we're on a 32-bit machine, construct a 64-bit "-1" value
from smaller values. Start with zero, widen, *then* decrement. */
#define MINUS_ONE (((bfd_vma)0) - 1)
static reloc_howto_type mcore_coff_howto_table[] =
{
@ -283,7 +282,6 @@ mcore_coff_unsupported_reloc (abfd, reloc_entry, symbol, data, input_section,
return bfd_reloc_notsupported;
}
/* A cheesy little macro to make the code a little more readable. */
#define HOW2MAP(bfd_rtype, mcore_rtype) \
@ -361,7 +359,6 @@ in_reloc_p (abfd, howto)
{
return ! howto->pc_relative && howto->type != IMAGE_REL_MCORE_RVA;
}
/* The reloc processing routine for the optimized COFF linker. */
static boolean
@ -560,7 +557,6 @@ coff_mcore_relocate_section (output_bfd, info, input_bfd, input_section,
return true;
}
/* Tailor coffcode.h -- macro heaven. */

View file

@ -115,7 +115,6 @@ static boolean mips_relax_pcrel16 PARAMS ((struct bfd_link_info *, bfd *,
bfd_byte *, bfd_vma));
static reloc_howto_type *mips_bfd_reloc_type_lookup
PARAMS ((bfd *, bfd_reloc_code_real_type));
/* ECOFF has COFF sections, but the debugging information is stored in
a completely different format. ECOFF targets use some of the

View file

@ -31,4 +31,3 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "coff/rs6000.h"
#include "libcoff.h"
#include "xcoff-target.h"

View file

@ -218,7 +218,6 @@ ppc_coff_link_hash_table_create (abfd)
/* Now, tailor coffcode.h to use our hash stuff */
#define coff_bfd_link_hash_table_create ppc_coff_link_hash_table_create
/* 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 */
@ -316,7 +315,6 @@ ppc_coff_link_hash_table_create (abfd)
#define EXTRACT_FLAGS(x) ((x) & IMAGE_REL_PPC_FLAGMASK)
#define EXTRACT_JUNK(x) \
((x) & ~(IMAGE_REL_PPC_TYPEMASK | IMAGE_REL_PPC_FLAGMASK))
/* static helper functions to make relocation work */
/* (Work In Progress) */
@ -344,7 +342,6 @@ static bfd_reloc_status_type ppc_pair_reloc PARAMS ((bfd *abfd,
asection *section,
bfd *output_bfd,
char **error));
static bfd_reloc_status_type ppc_toc16_reloc PARAMS ((bfd *abfd,
arelent *reloc,
@ -388,7 +385,6 @@ static bfd_reloc_status_type ppc_imglue_reloc PARAMS ((bfd *abfd,
char **error));
static boolean in_reloc_p PARAMS((bfd *abfd, reloc_howto_type *howto));
/* FIXME: It'll take a while to get through all of these. I only need a few to
get us started, so those I'll make sure work. Those marked FIXME are either
@ -769,9 +765,7 @@ static reloc_howto_type ppc_coff_howto_table[] =
false), /* pcrel_offset */
};
/* Some really cheezy macros that can be turned on to test stderr :-) */
#ifdef DEBUG_RELOC
@ -814,7 +808,6 @@ static reloc_howto_type ppc_coff_howto_table[] =
#define DUMP_RELOC(n,r)
#define DUMP_RELOC2(n,r)
#endif
/* toc construction and management routines */
@ -994,7 +987,6 @@ ppc_mark_symbol_as_glue(abfd, sym, rel)
#endif /* COFF_IMAGE_WITH_PE */
/* Return true if this relocation should
appear in the output .reloc section. */
@ -1865,7 +1857,6 @@ ppc_pair_reloc (abfd,
return bfd_reloc_undefined;
}
static bfd_reloc_status_type
ppc_toc16_reloc (abfd,
@ -2000,9 +1991,7 @@ ppc_imglue_reloc (abfd,
return bfd_reloc_ok;
}
#define MAX_RELOC_INDEX \
(sizeof (ppc_coff_howto_table) / sizeof (ppc_coff_howto_table[0]) - 1)
@ -2183,7 +2172,6 @@ ppc_coff_reloc_type_lookup (abfd, code)
}
#undef HOW2MAP
/* Tailor coffcode.h -- macro heaven. */
@ -2229,9 +2217,7 @@ static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR));
COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 1 }
#include "coffcode.h"
#ifndef COFF_IMAGE_WITH_PE
/* FIXME:
What we're trying to do here is allocate a toc section (early), and attach
@ -2826,7 +2812,6 @@ ppc_bfd_coff_final_link (abfd, info)
}
#endif
/* Forward declaration for use by alternative_target field. */
#ifdef TARGET_BIG_SYM
extern const bfd_target TARGET_BIG_SYM;

View file

@ -130,7 +130,6 @@ _bfd_xcoff_is_local_label_name (abfd, name)
return false;
}
void
_bfd_xcoff_swap_sym_in (abfd, ext1, in1)
bfd *abfd;
@ -402,7 +401,6 @@ _bfd_xcoff_swap_aux_out (abfd, inp, type, class, indx, numaux, extp)
end:
return bfd_coff_auxesz (abfd);
}
/* The XCOFF reloc table. Actually, XCOFF relocations specify the
bitsize and whether they are signed or not, along with a
@ -872,7 +870,6 @@ _bfd_xcoff_reloc_type_lookup (abfd, code)
return NULL;
}
}
/* XCOFF archive support. The original version of this code was by
Damon A. Permezel. It was enhanced to permit cross support, and

View file

@ -349,4 +349,3 @@ end:
#define TARGET_SYM rs6000coff64_vec
#include "xcoff-target.h"

View file

@ -2455,4 +2455,3 @@ bfd_coff_set_symbol_class (abfd, symbol, class)
return true;
}

View file

@ -3018,4 +3018,3 @@ _bfd_coff_generic_relocate_section (output_bfd, info, input_bfd,
}
return true;
}

View file

@ -318,7 +318,6 @@ mn10200_elf_final_link_relocate (howto, input_bfd, output_bfd,
return bfd_reloc_notsupported;
}
}
/* Relocate an MN10200 ELF section. */
static boolean

View file

@ -526,7 +526,6 @@ mn10300_elf_final_link_relocate (howto, input_bfd, output_bfd,
return bfd_reloc_notsupported;
}
}
/* Relocate an MN10300 ELF section. */
static boolean

View file

@ -283,7 +283,6 @@ fr30_elf_i20_reloc (abfd, reloc_entry, symbol, data,
return bfd_reloc_ok;
}
/* Utility to actually perform a R_FR30_48 reloc. */
@ -460,7 +459,6 @@ fr30_final_link_relocate (howto, input_bfd, input_section, contents, rel, reloca
return r;
}
/* Relocate an FR30 ELF section.
There is some attempt to make this function usable for many architectures,

View file

@ -58,7 +58,6 @@ enum i370_reloc_type
R_I370_max
};
static reloc_howto_type *i370_elf_howto_table[ (int)R_I370_max ];
@ -251,13 +250,11 @@ static reloc_howto_type i370_elf_howto_raw[] =
false), /* pcrel_offset */
};
static void i370_elf_howto_init PARAMS ((void));
static void i370_elf_info_to_howto PARAMS ((bfd *abfd, arelent *cache_ptr,
Elf32_Internal_Rela *dst));
static boolean i370_elf_set_private_flags PARAMS ((bfd *, flagword));
/* Initialize the i370_elf_howto_table, so that linear accesses can be done. */
@ -273,7 +270,6 @@ i370_elf_howto_init ()
i370_elf_howto_table[type] = &i370_elf_howto_raw[i];
}
}
static reloc_howto_type *
i370_elf_reloc_type_lookup (abfd, code)
@ -434,7 +430,6 @@ i370_elf_merge_private_bfd_data (ibfd, obfd)
return true;
}
/* Handle an i370 specific section when reading an object file. This
is called when elfcode.h finds a section with an unknown type. */
@ -466,7 +461,6 @@ i370_elf_section_from_shdr (abfd, hdr, name)
bfd_set_section_flags (abfd, newsect, flags);
return true;
}
/* Set up any other section flags and such that may be necessary. */
/* XXX hack alert bogus This routine is mostly all junk and almost
@ -488,7 +482,6 @@ i370_elf_fake_sections (abfd, shdr, asect)
return true;
}
#if 0
/* Create a special linker section */
@ -735,7 +728,6 @@ i370_elf_adjust_dynamic_symbol (info, h)
return true;
}
/* Increment the index of a dynamic symbol by a given amount. Called
via elf_link_hash_traverse. */
@ -762,7 +754,6 @@ i370_elf_adjust_dynindx (h, cparg)
return true;
}
/* Set the sizes of the dynamic sections. */
/* XXX hack alert bogus This routine is mostly all junk and almost
@ -995,7 +986,6 @@ i370_elf_size_dynamic_sections (output_bfd, info)
return true;
}
/* Look through the relocs for a section during the first phase, and
allocate space in the global offset table or procedure linkage
@ -1100,7 +1090,6 @@ i370_elf_check_relocs (abfd, info, sec, relocs)
return true;
}
/* Finish up the dynamic sections. */
/* XXX hack alert bogus This routine is mostly all junk and almost
@ -1241,7 +1230,6 @@ i370_elf_finish_dynamic_sections (output_bfd, info)
return true;
}
/* The RELOCATE_SECTION function is called by the ELF backend linker
to handle the relocations for a section.

View file

@ -541,7 +541,6 @@ static reloc_howto_type elf32_i860_howto_table [] =
0xffffffff, /* dst_mask */
false), /* pcrel_offset */
};
static unsigned char elf_code_to_howto_index[R_860_max + 1];
@ -698,7 +697,6 @@ elf32_i860_info_to_howto_rela (abfd, bfd_reloc, elf_reloc)
{
bfd_reloc->howto = lookup_howto (ELF32_R_TYPE (elf_reloc->r_info));
}
/* Specialized relocation handler for R_860_SPLITn. These relocations
involves a 16-bit field that is split into two contiguous parts. */
@ -1091,7 +1089,6 @@ elf32_i860_is_local_label_name (abfd, name)
return _bfd_elf_is_local_label_name (abfd, name);
}
#define TARGET_BIG_SYM bfd_elf32_i860_vec
#define TARGET_BIG_NAME "elf32-i860"

View file

@ -2156,9 +2156,7 @@ m32r_elf_check_relocs (abfd, info, sec, relocs)
return true;
}
#define ELF_ARCH bfd_arch_m32r
#define ELF_MACHINE_CODE EM_CYGNUS_M32R
#define ELF_MAXPAGESIZE 0x1 /* Explicitly requested by Mitsubishi. */

View file

@ -181,7 +181,6 @@ reloc_type_lookup (abfd, code)
/* end code generated by elf.el */
#define USE_RELA
/* Functions for the m68k ELF linker. */

View file

@ -233,7 +233,6 @@ mcore_elf_howto_init ()
mcore_elf_howto_table [type] = & mcore_elf_howto_raw [i];
}
}
static reloc_howto_type *
mcore_elf_reloc_type_lookup (abfd, code)
@ -346,7 +345,6 @@ mcore_elf_merge_private_bfd_data (ibfd, obfd)
return true;
}
/* Don't pretend we can deal with unsupported relocs. */
@ -370,7 +368,6 @@ mcore_elf_unsupported_reloc (abfd, reloc_entry, symbol, data, input_section,
return bfd_reloc_notsupported;
}
/* The RELOCATE_SECTION function is called by the ELF backend linker
to handle the relocations for a section.

View file

@ -1487,7 +1487,6 @@ ppc_elf_merge_private_bfd_data (ibfd, obfd)
return true;
}
/* Handle a PowerPC specific section when reading an object file. This
is called when elfcode.h finds a section with an unknown type. */
@ -1515,7 +1514,6 @@ ppc_elf_section_from_shdr (abfd, hdr, name)
bfd_set_section_flags (abfd, newsect, flags);
return true;
}
/* Set up any other section flags and such that may be necessary. */
@ -1533,7 +1531,6 @@ ppc_elf_fake_sections (abfd, shdr, asect)
return true;
}
/* Create a special linker section */
static elf_linker_section_t *
@ -2057,7 +2054,6 @@ ppc_elf_size_dynamic_sections (output_bfd, info)
return true;
}
/* Look through the relocs for a section during the first phase, and
allocate space in the global offset table or procedure linkage

View file

@ -2845,7 +2845,6 @@ sh_elf_discard_copies (h, ignore)
return true;
}
/* Relocate an SH ELF section. */

View file

@ -501,7 +501,6 @@ static const struct v850_elf_reloc_map v850_elf_reloc_map[] =
{ BFD_RELOC_VTABLE_ENTRY, R_V850_GNU_VTENTRY },
};
/* Map a bfd relocation into the appropriate howto structure */
static reloc_howto_type *
@ -525,7 +524,6 @@ v850_elf_reloc_type_lookup (abfd, code)
return NULL;
}
/* Set the howto pointer for an V850 ELF reloc. */
static void
@ -554,7 +552,6 @@ v850_elf_info_to_howto_rela (abfd, cache_ptr, dst)
BFD_ASSERT (r_type < (unsigned int) R_V850_max);
cache_ptr->howto = &v850_elf_howto_table[r_type];
}
/* Look through the relocs for a section during the first phase, and
allocate space in the global offset table or procedure linkage
@ -1243,7 +1240,6 @@ v850_elf_perform_relocation (abfd, r_type, addend, address)
bfd_put_16 (abfd, insn, address);
return bfd_reloc_ok;
}
/* Insert the addend into the instruction. */
static bfd_reloc_status_type
@ -1317,7 +1313,6 @@ v850_elf_reloc (abfd, reloc, symbol, data, isection, obfd, err)
reloc->addend = relocation;
return bfd_reloc_ok;
}
static boolean
v850_elf_is_local_label_name (abfd, name)
@ -1327,7 +1322,6 @@ v850_elf_is_local_label_name (abfd, name)
return ( (name[0] == '.' && (name[1] == 'L' || name[1] == '.'))
|| (name[0] == '_' && name[1] == '.' && name[2] == 'L' && name[3] == '_'));
}
/* Perform a relocation as part of a final link. */
static bfd_reloc_status_type
@ -1489,7 +1483,6 @@ v850_elf_final_link_relocate (howto, input_bfd, output_bfd,
/* Perform the relocation. */
return v850_elf_perform_relocation (input_bfd, r_type, value + addend, hit_data);
}
/* Relocate an V850 ELF section. */
static boolean
@ -2189,7 +2182,6 @@ v850_elf_fake_sections (abfd, hdr, sec)
return true;
}
#define TARGET_LITTLE_SYM bfd_elf32_v850_vec
#define TARGET_LITTLE_NAME "elf32-v850"

View file

@ -19,5 +19,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define ARCH_SIZE 32
#include "elfcode.h"

View file

@ -129,7 +129,6 @@ static boolean elf64_alpha_merge_ind_symbols
PARAMS((struct alpha_elf_link_hash_entry *, PTR));
static Elf_Internal_Rela * elf64_alpha_find_reloc_at_ofs
PARAMS ((Elf_Internal_Rela *, Elf_Internal_Rela *, bfd_vma, int));
struct alpha_elf_link_hash_entry
{

View file

@ -651,7 +651,6 @@ sparc64_elf_bfd_link_hash_table_create (abfd)
return &ret->root.root;
}
/* Utility for performing the standard initial work of an instruction
relocation.
@ -961,7 +960,6 @@ sparc64_elf_plt_ptr_offset (index, max)
+ last * 6*4
+ ofs * 8);
}
/* Look through the relocs for a section during the first phase, and
allocate space in the global offset table or procedure linkage

View file

@ -97,7 +97,6 @@ _bfd_elf_create_got_section (abfd, info)
return true;
}
/* Create dynamic sections when linking against a dynamic object. */
boolean
@ -212,7 +211,6 @@ _bfd_elf_create_dynamic_sections (abfd, info)
return true;
}
/* Record a new dynamic symbol. We record the dynamic symbols as we
read the input files, since we need to have a list of all of them
before we can determine the final sizes of the output sections.
@ -498,7 +496,6 @@ _bfd_elf_create_linker_section (abfd, info, which, defaults)
return lsect;
}
/* Find a linker generated pointer with a given addend and type. */
@ -516,7 +513,6 @@ _bfd_elf_find_pointer_linker_section (linker_pointers, addend, which)
return (elf_linker_section_pointers_t *)0;
}
/* Make the .rela section corresponding to the generated linker section. */

View file

@ -211,7 +211,6 @@ elf_link_is_defined_archive_symbol (abfd, symdef)
return result;
}
/* Add symbols from an ELF archive file to the linker hash table. We
don't use _bfd_generic_link_add_archive_symbols because of a
problem which arises on UnixWare. The UnixWare libc.so is an
@ -2409,7 +2408,6 @@ elf_link_record_local_dynamic_symbol (info, input_bfd, input_indx)
return true;
}
/* Read and swap the relocs from the section indicated by SHDR. This
may be either a REL or a RELA section. The relocations are
translated into RELA relocations and stored in INTERNAL_RELOCS,
@ -2587,7 +2585,6 @@ NAME(_bfd_elf,link_read_relocs) (abfd, o, external_relocs, internal_relocs,
return NULL;
}
/* Record an assignment to a symbol made by a linker script. We need
this in case some dynamic object refers to this symbol. */
@ -6053,7 +6050,6 @@ elf_reloc_link_order (output_bfd, info, output_section, link_order)
return true;
}
/* Allocate a pointer to live in a linker created section. */
@ -6176,7 +6172,6 @@ elf_create_pointer_linker_section (abfd, info, lsect, h, rel)
return true;
}
#if ARCH_SIZE==64
#define bfd_put_ptr(BFD,VAL,ADDR) bfd_put_64 (BFD, VAL, ADDR)

View file

@ -273,7 +273,6 @@ static boolean elfNN_ia64_merge_private_bfd_data
PARAMS ((bfd *ibfd, bfd *obfd));
static boolean elfNN_ia64_print_private_bfd_data
PARAMS ((bfd *abfd, PTR ptr));
/* ia64-specific relocation */