PowerPC: Don't generate unused section symbols
[binutils-gdb.git] / bfd / elf64-alpha.c
index 7b708f1e9d91b9893d30dfdd38cbc16e6663bc87..3d214374753433df9802b72aac890ea183d72532 100644 (file)
@@ -1,5 +1,5 @@
 /* Alpha specific support for 64-bit ELF
-   Copyright (C) 1996-2020 Free Software Foundation, Inc.
+   Copyright (C) 1996-2021 Free Software Foundation, Inc.
    Contributed by Richard Henderson <rth@tamu.edu>.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -2093,13 +2093,13 @@ elf64_alpha_adjust_dynamic_symbol (struct bfd_link_info *info,
 
 static void
 elf64_alpha_merge_symbol_attribute (struct elf_link_hash_entry *h,
-                                   const Elf_Internal_Sym *isym,
+                                   unsigned int st_other,
                                    bfd_boolean definition,
                                    bfd_boolean dynamic)
 {
   if (!dynamic && definition)
     h->other = ((h->other & ELF_ST_VISIBILITY (-1))
-               | (isym->st_other & ~ELF_ST_VISIBILITY (-1)));
+               | (st_other & ~ELF_ST_VISIBILITY (-1)));
 }
 
 /* Symbol versioning can create new symbols, and make our old symbols