mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
* 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.
This commit is contained in:
@ -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>
|
2010-11-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* config/tc-ppc.c (nop_limit): New var.
|
* config/tc-ppc.c (nop_limit): New var.
|
||||||
|
@ -1095,15 +1095,8 @@ weak_name2altname (const char * name)
|
|||||||
static const char *
|
static const char *
|
||||||
weak_altname2name (const char * name)
|
weak_altname2name (const char * name)
|
||||||
{
|
{
|
||||||
char * weak_name;
|
|
||||||
char * dot;
|
|
||||||
|
|
||||||
gas_assert (weak_is_altname (name));
|
gas_assert (weak_is_altname (name));
|
||||||
|
return xstrdup (name + 6);
|
||||||
weak_name = xstrdup (name + 6);
|
|
||||||
if ((dot = strchr (weak_name, '.')))
|
|
||||||
*dot = 0;
|
|
||||||
return weak_name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make a weak symbol name unique by
|
/* Make a weak symbol name unique by
|
||||||
@ -1121,9 +1114,6 @@ weak_uniquify (const char * name)
|
|||||||
#endif
|
#endif
|
||||||
gas_assert (weak_is_altname (name));
|
gas_assert (weak_is_altname (name));
|
||||||
|
|
||||||
if (strchr (name + sizeof (weak_altprefix), '.'))
|
|
||||||
return name;
|
|
||||||
|
|
||||||
ret = xmalloc (strlen (name) + strlen (unique) + 2);
|
ret = xmalloc (strlen (name) + strlen (unique) + 2);
|
||||||
strcpy (ret, name);
|
strcpy (ret, name);
|
||||||
strcat (ret, ".");
|
strcat (ret, ".");
|
||||||
|
Reference in New Issue
Block a user