PATCH: Re: ld's --no-undefined-version and '*' in pattern
H. J. Lu
hjl@lucon.org
Fri Oct 17 15:32:00 GMT 2003
On Fri, Oct 17, 2003 at 10:13:59AM +0200, Jan Beulich wrote:
> Thank you, that was fast. An additional note, though: While in most
> cases (high-level languages) assuming * and certain other characters are
> invalid for symbol names, this assumption does not generally hold, which
> is why I'd recommend removing the other occasion of the check for that
> character, too: The Intel IA64 assembler, as an example, permits using
> any character in symbol names through their .alias directive. Again,
> thanks for the quick reaction, Jan
>
I forgot about .alias :-). BTW, the GNU ia64 assembler should support
.alias now. Let me know if it is not working.
I will check in this patch shortly.
H.J.
----
2003-10-17 H.J. Lu <hongjiu.lu@intel.com>
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't skip
symbols with '*'.
--- bfd/elflink.h.star 2003-10-16 23:22:27.000000000 -0700
+++ bfd/elflink.h 2003-10-17 08:26:44.000000000 -0700
@@ -2059,7 +2059,7 @@ NAME(bfd_elf,size_dynamic_sections) (bfd
/* Make all global versions with definiton. */
for (t = verdefs; t != NULL; t = t->next)
for (d = t->globals; d != NULL; d = d->next)
- if (!d->symver && strchr (d->pattern, '*') == NULL)
+ if (!d->symver)
{
const char *verstr, *name;
size_t namelen, verlen, newlen;
More information about the Binutils
mailing list