From 8d2c33be032d817bfce67cb975bb25fdc28f1c5d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 4 Jun 2002 05:28:52 +0000 Subject: * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove ATTRIBUTE_UNUSED on used params. * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks before calling bfd_section_from_elf_index on local syms. * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise. --- bfd/ChangeLog | 8 ++++++++ bfd/elf32-openrisc.c | 8 ++++---- bfd/elf32-vax.c | 8 +------- bfd/elf64-sh64.c | 6 +----- 4 files changed, 14 insertions(+), 16 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fd99a26..136b2b5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +2002-06-04 Alan Modra + + * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove + ATTRIBUTE_UNUSED on used params. + * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks + before calling bfd_section_from_elf_index on local syms. + * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise. + 2002-06-04 Jason Thorpe * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo. diff --git a/bfd/elf32-openrisc.c b/bfd/elf32-openrisc.c index 34d4d9f..2dd7fb7 100644 --- a/bfd/elf32-openrisc.c +++ b/bfd/elf32-openrisc.c @@ -469,11 +469,11 @@ openrisc_elf_relocate_section (output_bfd, info, input_bfd, input_section, static asection * openrisc_elf_gc_mark_hook (abfd, info, rel, h, sym) - bfd *abfd ATTRIBUTE_UNUSED; + bfd *abfd; struct bfd_link_info *info ATTRIBUTE_UNUSED; - Elf_Internal_Rela *rel ATTRIBUTE_UNUSED; - struct elf_link_hash_entry *h ATTRIBUTE_UNUSED; - Elf_Internal_Sym *sym ATTRIBUTE_UNUSED; + Elf_Internal_Rela *rel; + struct elf_link_hash_entry *h; + Elf_Internal_Sym *sym; { if (h != NULL) { diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c index aecc6bc..8901188 100644 --- a/bfd/elf32-vax.c +++ b/bfd/elf32-vax.c @@ -887,13 +887,7 @@ elf_vax_gc_mark_hook (abfd, info, rel, h, sym) } else { - if (!(elf_bad_symtab (abfd) - && ELF_ST_BIND (sym->st_info) != STB_LOCAL) - && ! ((sym->st_shndx <= 0 || sym->st_shndx >= SHN_LORESERVE) - && sym->st_shndx != SHN_COMMON)) - { - return bfd_section_from_elf_index (abfd, sym->st_shndx); - } + return bfd_section_from_elf_index (abfd, sym->st_shndx); } return NULL; diff --git a/bfd/elf64-sh64.c b/bfd/elf64-sh64.c index 91762fa..fb46bce 100644 --- a/bfd/elf64-sh64.c +++ b/bfd/elf64-sh64.c @@ -2481,11 +2481,7 @@ sh_elf64_gc_mark_hook (abfd, info, rel, h, sym) } else { - if (!(elf_bad_symtab (abfd) - && ELF_ST_BIND (sym->st_info) != STB_LOCAL) - && ! ((sym->st_shndx <= 0 || sym->st_shndx >= SHN_LORESERVE) - && sym->st_shndx != SHN_COMMON)) - return bfd_section_from_elf_index (abfd, sym->st_shndx); + return bfd_section_from_elf_index (abfd, sym->st_shndx); } return NULL; -- cgit v1.1