* elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
authorAlan Modra <amodra@gmail.com>
Tue, 4 Jun 2002 05:28:52 +0000 (05:28 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Jun 2002 05:28:52 +0000 (05:28 +0000)
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
bfd/elf32-openrisc.c
bfd/elf32-vax.c
bfd/elf64-sh64.c

index fd99a26f0722c80aaae92bd487f2187869373ef5..136b2b5f077989940294cc0793d0e2a812c728dd 100644 (file)
@@ -1,3 +1,11 @@
+2002-06-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * 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  <thorpej@wasabisystems.com>
 
        * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
index 34d4d9facde2f530e125265f88e11a01b1d29468..2dd7fb71da90acd68456bc76d2fc1d18893283e4 100644 (file)
@@ -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)
     {
index aecc6bc6c89f084980f81acb9e68216543cdbc41..8901188b7c6c4093c0b24b88c9c48065c1fe2530 100644 (file)
@@ -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;
index 91762fad3408077888c3b38d523904088bb193d4..fb46bce8d804c5ec145de83ada54d206cf5c9ae0 100644 (file)
@@ -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;