Broken --dotsyms
Alan Modra
amodra@bigpond.net.au
Tue Aug 17 12:33:00 GMT 2004
On Tue, Aug 17, 2004 at 08:39:43AM +0200, Jakub Jelinek wrote:
> BTW, seems --dotsyms (which is the default AFAIK)
> is broken for some time already.
[snip]
Yes, since HJ's 2003-10-24 bfd_elf_version_expr change. I obviously
wasn't paying attention at the time.
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
prefix the symbol field too.
Index: ld/emultempl/ppc64elf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/ppc64elf.em,v
retrieving revision 1.31
diff -u -p -r1.31 ppc64elf.em
--- ld/emultempl/ppc64elf.em 10 Aug 2004 11:23:03 -0000 1.31
+++ ld/emultempl/ppc64elf.em 17 Aug 2004 12:31:35 -0000
@@ -420,6 +420,14 @@ gld${EMULATION_NAME}_new_vers_pattern (s
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;
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list