1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:54:43 -07:00

5l (and 6l, 8l, ld): more arm build fixes

R=ken2
CC=golang-dev
https://golang.org/cl/3521041
This commit is contained in:
Russ Cox 2010-12-08 15:44:59 -05:00
parent b8562ff488
commit 839abc2ea7
4 changed files with 5 additions and 4 deletions

View File

@ -110,6 +110,7 @@ struct Prog
char mode; /* 16, 32, or 64 */
};
#define datasize from.scale
#define textflag from.scale
struct Auto
{

View File

@ -108,7 +108,8 @@ struct Prog
uchar back;
uchar bigjmp;
};
#define datasize from.scale
#define datasize from.scale
#define textflag from.scale
struct Auto
{

View File

@ -660,12 +660,11 @@ ldelf(Biobuf *f, char *pkg, int64 len, char *pn)
diag("%s: duplicate definition of %s", pn, s->name);
// build a TEXT instruction with a unique pc
// just to make the rest of the linker happy.
// TODO: this is too 6l-specific ?
p = prg();
p->as = ATEXT;
p->from.type = D_EXTERN;
p->from.sym = s;
p->from.scale = 7;
p->textflag = 7;
p->to.type = D_CONST;
p->link = nil;
p->pc = pc++;

View File

@ -640,7 +640,7 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn)
p->as = ATEXT;
p->from.type = D_EXTERN;
p->from.sym = s;
p->from.scale = 7;
p->textflag = 7;
p->to.type = D_CONST;
p->link = nil;
p->pc = pc++;