aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-08-17 12:33:59 +0000
committerAlan Modra <amodra@gmail.com>2004-08-17 12:33:59 +0000
commitc4e3388091f4b20d7509c11612ed95349f8d82e7 (patch)
tree1f9b19e6777c1eafa11fbe024ee753c3bdf62c88 /ld/emultempl
parent329e276daf98fb4c8b3770a6c2f02fd22472a638 (diff)
downloadgdb-c4e3388091f4b20d7509c11612ed95349f8d82e7.zip
gdb-c4e3388091f4b20d7509c11612ed95349f8d82e7.tar.gz
gdb-c4e3388091f4b20d7509c11612ed95349f8d82e7.tar.bz2
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
prefix the symbol field too.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc64elf.em8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index f2d5e6e..264d63e 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -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;
}