mirror of
https://github.com/golang/go
synced 2024-11-20 02:34:42 -07:00
cmd/ld: remove remaining occurrence of isobj.
Fixes cgo builds. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7784044
This commit is contained in:
parent
1ce0d72fdf
commit
b35019fe9a
@ -143,7 +143,6 @@ EXTERN int nldflag;
|
||||
EXTERN char** ldflag;
|
||||
EXTERN int havedynamic;
|
||||
EXTERN int iscgo;
|
||||
EXTERN int isobj;
|
||||
EXTERN int elfglobalsymndx;
|
||||
EXTERN int flag_race;
|
||||
EXTERN int flag_shared;
|
||||
|
@ -136,7 +136,7 @@ putelfsym(Sym *x, char *s, int t, vlong addr, vlong size, int ver, Sym *go)
|
||||
return;
|
||||
|
||||
off = putelfstr(s);
|
||||
if(isobj)
|
||||
if(linkmode == LinkExternal)
|
||||
addr -= xo->sect->vaddr;
|
||||
putelfsyment(off, addr, size, (bind<<4)|(type&0xf), xo->sect->elfsect->shnum, (x->type & SHIDDEN) ? 2 : 0);
|
||||
x->elfsym = numelfsym++;
|
||||
|
Loading…
Reference in New Issue
Block a user