mirror of
https://github.com/golang/go
synced 2024-11-22 01:14:40 -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:
parent
b8562ff488
commit
839abc2ea7
@ -110,6 +110,7 @@ struct Prog
|
||||
char mode; /* 16, 32, or 64 */
|
||||
};
|
||||
#define datasize from.scale
|
||||
#define textflag from.scale
|
||||
|
||||
struct Auto
|
||||
{
|
||||
|
@ -109,6 +109,7 @@ struct Prog
|
||||
uchar bigjmp;
|
||||
};
|
||||
#define datasize from.scale
|
||||
#define textflag from.scale
|
||||
|
||||
struct Auto
|
||||
{
|
||||
|
@ -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++;
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user