mirror of
https://github.com/golang/go
synced 2024-11-25 06:57:58 -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:
parent
2d310a0087
commit
e69b9ddd42
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user