This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PowerPC64 and --no-undefined-version
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 28 Oct 2010 19:08:56 +1030
- Subject: PowerPC64 and --no-undefined-version
I noticed today that --no-undefined-version gives errors on ppc64, due
to the dot-sym patterns added by the ppc64 new_vers_pattern code
(which could probably be removed now that non-dotsym gcc has been out
for some years).
* emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): For
--no-undefined-version, don't report dot sym versions added by ld.
Index: ld/emultempl/ppc64elf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/ppc64elf.em,v
retrieving revision 1.71
diff -u -p -r1.71 ppc64elf.em
--- ld/emultempl/ppc64elf.em 25 Jun 2010 05:20:57 -0000 1.71
+++ ld/emultempl/ppc64elf.em 28 Oct 2010 03:49:50 -0000
@@ -599,6 +599,7 @@ gld${EMULATION_NAME}_new_vers_pattern (s
dot_pat[0] = '.';
memcpy (dot_pat + 1, entry->pattern, len - 1);
dot_entry->pattern = dot_pat;
+ dot_entry->script = 1;
return dot_entry;
}
--
Alan Modra
Australia Development Lab, IBM