1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:34:40 -07:00

ld: do not emit reference to dynamic library named ""

Fixes #1778.

R=ken2
CC=golang-dev
https://golang.org/cl/4550047
This commit is contained in:
Russ Cox 2011-05-16 16:24:17 -04:00
parent 2d310a0087
commit e69b9ddd42
3 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,9 @@ needlib(char *name)
char *p;
Sym *s;
if(*name == '\0')
return 0;
/* reuse hash code in symbol table */
p = smprint(".dynlib.%s", name);
s = lookup(p, 0);

View File

@ -108,6 +108,9 @@ needlib(char *name)
char *p;
Sym *s;
if(*name == '\0')
return 0;
/* reuse hash code in symbol table */
p = smprint(".elfload.%s", name);
s = lookup(p, 0);

View File

@ -104,6 +104,9 @@ needlib(char *name)
char *p;
Sym *s;
if(*name == '\0')
return 0;
/* reuse hash code in symbol table */
p = smprint(".dynlib.%s", name);
s = lookup(p, 0);