This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Broken --dotsyms
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 17 Aug 2004 22:03:10 +0930
- Subject: Re: Broken --dotsyms
- References: <20040817063942.GJ30497@sunsite.ms.mff.cuni.cz>
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