1
0
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:
Rémy Oudompheng 2013-03-20 08:32:11 +01:00
parent 1ce0d72fdf
commit b35019fe9a
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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++;