* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
authorAlan Modra <amodra@gmail.com>
Tue, 17 Aug 2004 12:33:59 +0000 (12:33 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 17 Aug 2004 12:33:59 +0000 (12:33 +0000)
prefix the symbol field too.

ld/ChangeLog
ld/emultempl/ppc64elf.em

index d9aa177d6bde565aea3ea6c982d3f452fee7f1fb..d96be457f8a854700141550b153c0952d4f11867 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
+       prefix the symbol field too.
+
 2004-08-13  Alan Modra  <amodra@bigpond.net.au>
 
        * ldmain.c (link_callbacks): Remove "error_handler".
index f2d5e6ebfbbef71b79f088bd2d62d7223cc9a705..264d63ebf1fe6d45682201946e644368fd800751 100644 (file)
@@ -420,6 +420,14 @@ gld${EMULATION_NAME}_new_vers_pattern (struct bfd_elf_version_expr *entry)
   dot_pat[0] = '.';
   memcpy (dot_pat + 1, entry->pattern, len - 1);
   dot_entry->pattern = dot_pat;
+  if (entry->symbol != NULL)
+    {
+      len = strlen (entry->symbol) + 2;
+      dot_pat = xmalloc (len);
+      dot_pat[0] = '.';
+      memcpy (dot_pat + 1, entry->symbol, len - 1);
+      dot_entry->symbol = dot_pat;
+    }
   return dot_entry;
 }