aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2010-11-05 04:58:24 +0000
committerDave Korn <dave.korn@artimi.com>2010-11-05 04:58:24 +0000
commitb851162aada557f0e1e25246b0580a56261c3f1e (patch)
tree91501bb72fd50d6e79ac05b44f7da2ffb95d6fab /gas
parent677ba4470951e5e3871702196fa3dbed16d2b451 (diff)
downloadbinutils-b851162aada557f0e1e25246b0580a56261c3f1e.zip
binutils-b851162aada557f0e1e25246b0580a56261c3f1e.tar.gz
binutils-b851162aada557f0e1e25246b0580a56261c3f1e.tar.bz2
* config/obj-coff.c (weak_altname2name): Don't infer from the presence
of a period that the symbol has been already uniquify-d. (weak_uniquify): Don't worry that the symbol might have been already uniquify-d.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/obj-coff.c12
2 files changed, 8 insertions, 11 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 65ca4cb..99cb8cd 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-05 Dave Korn <dave.korn.cygwin@gmail.com>
+
+ * config/obj-coff.c (weak_altname2name): Don't infer from the presence
+ of a period that the symbol has been already uniquify-d.
+ (weak_uniquify): Don't worry that the symbol might have been already
+ uniquify-d.
+
2010-11-04 Alan Modra <amodra@gmail.com>
* config/tc-ppc.c (nop_limit): New var.
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 9c7ca6c..fec6589 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1095,15 +1095,8 @@ weak_name2altname (const char * name)
static const char *
weak_altname2name (const char * name)
{
- char * weak_name;
- char * dot;
-
gas_assert (weak_is_altname (name));
-
- weak_name = xstrdup (name + 6);
- if ((dot = strchr (weak_name, '.')))
- *dot = 0;
- return weak_name;
+ return xstrdup (name + 6);
}
/* Make a weak symbol name unique by
@@ -1121,9 +1114,6 @@ weak_uniquify (const char * name)
#endif
gas_assert (weak_is_altname (name));
- if (strchr (name + sizeof (weak_altprefix), '.'))
- return name;
-
ret = xmalloc (strlen (name) + strlen (unique) + 2);
strcpy (ret, name);
strcat (ret, ".");