* elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
(elf_generic_info_to_howto_rel): Likewise. * coff-alpha.c (reloc_nil): Likewise. (alpha_ecoff_bad_format_hook): Likewise. (alpha_adjust_reloc_out): Likewise. (alpha_bfd_reloc_type_lookup): Likewise. (alpha_convert_external_reloc): Likewise. * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise. (elf64_alpha_reloc_bad): Likewise. (elf64_alpha_reloc_gpdisp): Likewise. (elf64_alpha_bfd_reloc_type_lookup): Likewise. (elf64_alpha_info_to_howto): Likewise. (elf64_alpha_add_symbol_hook): Likewise. (elf64_alpha_create_got_section): Likewise. (elf64_alpha_is_local_label_name): Likewise. (elf64_alpha_merge_ind_symbols): Likewise. * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise. (mips_elf64_get_reloc_upper_bound): Likewise. * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise. (nlm_alpha_get_public_offset): Likewise.
This commit is contained in:
parent
3438adb37d
commit
56fc028eb1
@ -1,8 +1,31 @@
|
|||||||
|
2001-05-03 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
|
||||||
|
(elf_generic_info_to_howto_rel): Likewise.
|
||||||
|
* coff-alpha.c (reloc_nil): Likewise.
|
||||||
|
(alpha_ecoff_bad_format_hook): Likewise.
|
||||||
|
(alpha_adjust_reloc_out): Likewise.
|
||||||
|
(alpha_bfd_reloc_type_lookup): Likewise.
|
||||||
|
(alpha_convert_external_reloc): Likewise.
|
||||||
|
* elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
|
||||||
|
(elf64_alpha_reloc_bad): Likewise.
|
||||||
|
(elf64_alpha_reloc_gpdisp): Likewise.
|
||||||
|
(elf64_alpha_bfd_reloc_type_lookup): Likewise.
|
||||||
|
(elf64_alpha_info_to_howto): Likewise.
|
||||||
|
(elf64_alpha_add_symbol_hook): Likewise.
|
||||||
|
(elf64_alpha_create_got_section): Likewise.
|
||||||
|
(elf64_alpha_is_local_label_name): Likewise.
|
||||||
|
(elf64_alpha_merge_ind_symbols): Likewise.
|
||||||
|
* elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
|
||||||
|
(mips_elf64_get_reloc_upper_bound): Likewise.
|
||||||
|
* nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
|
||||||
|
(nlm_alpha_get_public_offset): Likewise.
|
||||||
|
|
||||||
2001-05-02 Johan Rydberg <jrydberg@opencores.org>
|
2001-05-02 Johan Rydberg <jrydberg@opencores.org>
|
||||||
|
|
||||||
* elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
|
* elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
|
||||||
about overflow in R_OPENRISC_LO_16_IN_INSN and
|
about overflow in R_OPENRISC_LO_16_IN_INSN and
|
||||||
R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
|
R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
|
||||||
|
|
||||||
2001-04-30 H.J. Lu <hjl@gnu.org>
|
2001-04-30 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
@ -867,13 +867,13 @@ static reloc_howto_type elf64_alpha_howto_table[] =
|
|||||||
|
|
||||||
static bfd_reloc_status_type
|
static bfd_reloc_status_type
|
||||||
elf64_alpha_reloc_nil (abfd, reloc, sym, data, sec, output_bfd, error_message)
|
elf64_alpha_reloc_nil (abfd, reloc, sym, data, sec, output_bfd, error_message)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *reloc;
|
arelent *reloc;
|
||||||
asymbol *sym;
|
asymbol *sym ATTRIBUTE_UNUSED;
|
||||||
PTR data;
|
PTR data ATTRIBUTE_UNUSED;
|
||||||
asection *sec;
|
asection *sec;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
char **error_message;
|
char **error_message ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
if (output_bfd)
|
if (output_bfd)
|
||||||
reloc->address += sec->output_offset;
|
reloc->address += sec->output_offset;
|
||||||
@ -884,13 +884,13 @@ elf64_alpha_reloc_nil (abfd, reloc, sym, data, sec, output_bfd, error_message)
|
|||||||
|
|
||||||
static bfd_reloc_status_type
|
static bfd_reloc_status_type
|
||||||
elf64_alpha_reloc_bad (abfd, reloc, sym, data, sec, output_bfd, error_message)
|
elf64_alpha_reloc_bad (abfd, reloc, sym, data, sec, output_bfd, error_message)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *reloc;
|
arelent *reloc;
|
||||||
asymbol *sym;
|
asymbol *sym ATTRIBUTE_UNUSED;
|
||||||
PTR data;
|
PTR data ATTRIBUTE_UNUSED;
|
||||||
asection *sec;
|
asection *sec;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
char **error_message;
|
char **error_message ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
if (output_bfd)
|
if (output_bfd)
|
||||||
reloc->address += sec->output_offset;
|
reloc->address += sec->output_offset;
|
||||||
@ -947,7 +947,7 @@ elf64_alpha_reloc_gpdisp (abfd, reloc_entry, sym, data, input_section,
|
|||||||
output_bfd, err_msg)
|
output_bfd, err_msg)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
arelent *reloc_entry;
|
arelent *reloc_entry;
|
||||||
asymbol *sym;
|
asymbol *sym ATTRIBUTE_UNUSED;
|
||||||
PTR data;
|
PTR data;
|
||||||
asection *input_section;
|
asection *input_section;
|
||||||
bfd *output_bfd;
|
bfd *output_bfd;
|
||||||
@ -1028,7 +1028,7 @@ static const struct elf_reloc_map elf64_alpha_reloc_map[] =
|
|||||||
|
|
||||||
static reloc_howto_type *
|
static reloc_howto_type *
|
||||||
elf64_alpha_bfd_reloc_type_lookup (abfd, code)
|
elf64_alpha_bfd_reloc_type_lookup (abfd, code)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
bfd_reloc_code_real_type code;
|
bfd_reloc_code_real_type code;
|
||||||
{
|
{
|
||||||
const struct elf_reloc_map *i, *e;
|
const struct elf_reloc_map *i, *e;
|
||||||
@ -1046,7 +1046,7 @@ elf64_alpha_bfd_reloc_type_lookup (abfd, code)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
elf64_alpha_info_to_howto (abfd, cache_ptr, dst)
|
elf64_alpha_info_to_howto (abfd, cache_ptr, dst)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *cache_ptr;
|
arelent *cache_ptr;
|
||||||
Elf64_Internal_Rela *dst;
|
Elf64_Internal_Rela *dst;
|
||||||
{
|
{
|
||||||
@ -1848,8 +1848,8 @@ elf64_alpha_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
|
|||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info;
|
||||||
const Elf_Internal_Sym *sym;
|
const Elf_Internal_Sym *sym;
|
||||||
const char **namep;
|
const char **namep ATTRIBUTE_UNUSED;
|
||||||
flagword *flagsp;
|
flagword *flagsp ATTRIBUTE_UNUSED;
|
||||||
asection **secp;
|
asection **secp;
|
||||||
bfd_vma *valp;
|
bfd_vma *valp;
|
||||||
{
|
{
|
||||||
@ -1884,7 +1884,7 @@ elf64_alpha_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
|
|||||||
static boolean
|
static boolean
|
||||||
elf64_alpha_create_got_section(abfd, info)
|
elf64_alpha_create_got_section(abfd, info)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
asection *s;
|
asection *s;
|
||||||
|
|
||||||
@ -2087,7 +2087,7 @@ elf64_alpha_read_ecoff_info (abfd, section, debug)
|
|||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
elf64_alpha_is_local_label_name (abfd, name)
|
elf64_alpha_is_local_label_name (abfd, name)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
const char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
return name[0] == '$';
|
return name[0] == '$';
|
||||||
@ -2739,7 +2739,7 @@ elf64_alpha_adjust_dynamic_symbol (info, h)
|
|||||||
static boolean
|
static boolean
|
||||||
elf64_alpha_merge_ind_symbols (hi, dummy)
|
elf64_alpha_merge_ind_symbols (hi, dummy)
|
||||||
struct alpha_elf_link_hash_entry *hi;
|
struct alpha_elf_link_hash_entry *hi;
|
||||||
PTR dummy;
|
PTR dummy ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
struct alpha_elf_link_hash_entry *hs;
|
struct alpha_elf_link_hash_entry *hs;
|
||||||
|
|
||||||
@ -4727,8 +4727,8 @@ const struct elf_size_info alpha_elf_size_info =
|
|||||||
#define TARGET_LITTLE_SYM bfd_elf64_alpha_vec
|
#define TARGET_LITTLE_SYM bfd_elf64_alpha_vec
|
||||||
#define TARGET_LITTLE_NAME "elf64-alpha"
|
#define TARGET_LITTLE_NAME "elf64-alpha"
|
||||||
#define ELF_ARCH bfd_arch_alpha
|
#define ELF_ARCH bfd_arch_alpha
|
||||||
#define ELF_MACHINE_CODE EM_ALPHA
|
#define ELF_MACHINE_CODE EM_ALPHA
|
||||||
#define ELF_MAXPAGESIZE 0x10000
|
#define ELF_MAXPAGESIZE 0x10000
|
||||||
|
|
||||||
#define bfd_elf64_bfd_link_hash_table_create \
|
#define bfd_elf64_bfd_link_hash_table_create \
|
||||||
elf64_alpha_bfd_link_hash_table_create
|
elf64_alpha_bfd_link_hash_table_create
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Generic support for 64-bit ELF
|
/* Generic support for 64-bit ELF
|
||||||
Copyright 1993, 1995, 1998, 1999 Free Software Foundation, Inc.
|
Copyright 1993, 1995, 1998, 1999, 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.
|
||||||
|
|
||||||
@ -42,23 +42,23 @@ static reloc_howto_type dummy =
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
elf_generic_info_to_howto (abfd, bfd_reloc, elf_reloc)
|
elf_generic_info_to_howto (abfd, bfd_reloc, elf_reloc)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *bfd_reloc;
|
arelent *bfd_reloc;
|
||||||
Elf64_Internal_Rela *elf_reloc;
|
Elf64_Internal_Rela *elf_reloc ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
bfd_reloc->howto = &dummy;
|
bfd_reloc->howto = &dummy;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
elf_generic_info_to_howto_rel (abfd, bfd_reloc, elf_reloc)
|
elf_generic_info_to_howto_rel (abfd, bfd_reloc, elf_reloc)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
arelent *bfd_reloc;
|
arelent *bfd_reloc;
|
||||||
Elf64_Internal_Rel *elf_reloc;
|
Elf64_Internal_Rel *elf_reloc ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
bfd_reloc->howto = &dummy;
|
bfd_reloc->howto = &dummy;
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
elf64_generic_link_add_symbols (abfd, info)
|
elf64_generic_link_add_symbols (abfd, info)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info;
|
||||||
|
@ -160,7 +160,7 @@ static reloc_howto_type mips_elf64_howto_table_rel[] =
|
|||||||
false, /* pc_relative */
|
false, /* pc_relative */
|
||||||
0, /* bitpos */
|
0, /* bitpos */
|
||||||
complain_overflow_dont, /* complain_on_overflow */
|
complain_overflow_dont, /* complain_on_overflow */
|
||||||
/* This needs complex overflow
|
/* This needs complex overflow
|
||||||
detection, because the upper four
|
detection, because the upper four
|
||||||
bits must match the PC + 4. */
|
bits must match the PC + 4. */
|
||||||
bfd_elf_generic_reloc, /* special_function */
|
bfd_elf_generic_reloc, /* special_function */
|
||||||
@ -713,7 +713,7 @@ static reloc_howto_type mips_elf64_howto_table_rela[] =
|
|||||||
false, /* pc_relative */
|
false, /* pc_relative */
|
||||||
0, /* bitpos */
|
0, /* bitpos */
|
||||||
complain_overflow_dont, /* complain_on_overflow */
|
complain_overflow_dont, /* complain_on_overflow */
|
||||||
/* This needs complex overflow
|
/* This needs complex overflow
|
||||||
detection, because the upper four
|
detection, because the upper four
|
||||||
bits must match the PC + 4. */
|
bits must match the PC + 4. */
|
||||||
bfd_elf_generic_reloc, /* special_function */
|
bfd_elf_generic_reloc, /* special_function */
|
||||||
@ -1390,7 +1390,7 @@ static CONST struct elf_reloc_map mips_reloc_map[] =
|
|||||||
|
|
||||||
static reloc_howto_type *
|
static reloc_howto_type *
|
||||||
mips_elf64_reloc_type_lookup (abfd, code)
|
mips_elf64_reloc_type_lookup (abfd, code)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
bfd_reloc_code_real_type code;
|
bfd_reloc_code_real_type code;
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
@ -1414,7 +1414,7 @@ mips_elf64_reloc_type_lookup (abfd, code)
|
|||||||
|
|
||||||
static long
|
static long
|
||||||
mips_elf64_get_reloc_upper_bound (abfd, sec)
|
mips_elf64_get_reloc_upper_bound (abfd, sec)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *sec;
|
asection *sec;
|
||||||
{
|
{
|
||||||
return (sec->reloc_count * 3 + 1) * sizeof (arelent *);
|
return (sec->reloc_count * 3 + 1) * sizeof (arelent *);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Support for 32-bit Alpha NLM (NetWare Loadable Module)
|
/* Support for 32-bit Alpha NLM (NetWare Loadable Module)
|
||||||
Copyright 1993, 1994, 2000 Free Software Foundation, Inc.
|
Copyright 1993, 1994, 2000, 2001 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor, Cygnus Support.
|
Written by Ian Lance Taylor, Cygnus Support.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
@ -603,11 +603,11 @@ nlm_alpha_read_reloc (abfd, sym, secp, rel)
|
|||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
nlm_alpha_mangle_relocs (abfd, sec, data, offset, count)
|
nlm_alpha_mangle_relocs (abfd, sec, data, offset, count)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asection *sec;
|
asection *sec ATTRIBUTE_UNUSED;
|
||||||
PTR data;
|
PTR data ATTRIBUTE_UNUSED;
|
||||||
bfd_vma offset;
|
bfd_vma offset ATTRIBUTE_UNUSED;
|
||||||
bfd_size_type count;
|
bfd_size_type count ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -807,7 +807,7 @@ nlm_alpha_set_public_section (abfd, sym)
|
|||||||
|
|
||||||
static bfd_vma
|
static bfd_vma
|
||||||
nlm_alpha_get_public_offset (abfd, sym)
|
nlm_alpha_get_public_offset (abfd, sym)
|
||||||
bfd *abfd;
|
bfd *abfd ATTRIBUTE_UNUSED;
|
||||||
asymbol *sym;
|
asymbol *sym;
|
||||||
{
|
{
|
||||||
return bfd_asymbol_value (sym);
|
return bfd_asymbol_value (sym);
|
||||||
|
Loading…
Reference in New Issue
Block a user