Tidy ppc64_elf_hide_symbol
authorAlan Modra <amodra@gmail.com>
Sat, 3 Dec 2016 10:28:15 +0000 (20:58 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 3 Dec 2016 10:28:15 +0000 (20:58 +1030)
* elf64-ppc.c (ppc64_elf_hide_symbol): Access hash table as
elf_link_hash_table rather than ppc_link_hash_table.

bfd/ChangeLog
bfd/elf64-ppc.c

index 733735c9791e30460c4034bfe4f6d14da21cec83..7721b17407cb616be8abcb4a9949b899901f565e 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-03  Alan Modra  <amodra@gmail.com>
+
+       * elf64-ppc.c (ppc64_elf_hide_symbol): Access hash table as
+       elf_link_hash_table rather than ppc_link_hash_table.
+
 2016-12-03  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (add_symbol_adjust): Delete dead code.
index 1256ead0669da0c7400c0b2082cf5855492bfbf8..27328ecf58638bc6c418de10a68503af7cec72d0 100644 (file)
@@ -7392,7 +7392,7 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
       if (fh == NULL)
        {
          const char *p, *q;
-         struct ppc_link_hash_table *htab;
+         struct elf_link_hash_table *htab = elf_hash_table (info);
          char save;
 
          /* We aren't supposed to use alloca in BFD because on
@@ -7407,12 +7407,8 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
          p = eh->elf.root.root.string - 1;
          save = *p;
          *(char *) p = '.';
-         htab = ppc_hash_table (info);
-         if (htab == NULL)
-           return;
-
          fh = (struct ppc_link_hash_entry *)
-           elf_link_hash_lookup (&htab->elf, p, FALSE, FALSE, FALSE);
+           elf_link_hash_lookup (htab, p, FALSE, FALSE, FALSE);
          *(char *) p = save;
 
          /* Unfortunately, if it so happens that the string we were
@@ -7426,7 +7422,7 @@ ppc64_elf_hide_symbol (struct bfd_link_info *info,
                --q, --p;
              if (q < eh->elf.root.root.string && *p == '.')
                fh = (struct ppc_link_hash_entry *)
-                 elf_link_hash_lookup (&htab->elf, p, FALSE, FALSE, FALSE);
+                 elf_link_hash_lookup (htab, p, FALSE, FALSE, FALSE);
            }
          if (fh != NULL)
            {
This page took 0.034001 seconds and 4 git commands to generate.