mirror of
https://github.com/golang/go
synced 2024-11-25 22:57:58 -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 */
|
char mode; /* 16, 32, or 64 */
|
||||||
};
|
};
|
||||||
#define datasize from.scale
|
#define datasize from.scale
|
||||||
|
#define textflag from.scale
|
||||||
|
|
||||||
struct Auto
|
struct Auto
|
||||||
{
|
{
|
||||||
|
@ -109,6 +109,7 @@ struct Prog
|
|||||||
uchar bigjmp;
|
uchar bigjmp;
|
||||||
};
|
};
|
||||||
#define datasize from.scale
|
#define datasize from.scale
|
||||||
|
#define textflag from.scale
|
||||||
|
|
||||||
struct Auto
|
struct Auto
|
||||||
{
|
{
|
||||||
|
@ -660,12 +660,11 @@ ldelf(Biobuf *f, char *pkg, int64 len, char *pn)
|
|||||||
diag("%s: duplicate definition of %s", pn, s->name);
|
diag("%s: duplicate definition of %s", pn, s->name);
|
||||||
// build a TEXT instruction with a unique pc
|
// build a TEXT instruction with a unique pc
|
||||||
// just to make the rest of the linker happy.
|
// just to make the rest of the linker happy.
|
||||||
// TODO: this is too 6l-specific ?
|
|
||||||
p = prg();
|
p = prg();
|
||||||
p->as = ATEXT;
|
p->as = ATEXT;
|
||||||
p->from.type = D_EXTERN;
|
p->from.type = D_EXTERN;
|
||||||
p->from.sym = s;
|
p->from.sym = s;
|
||||||
p->from.scale = 7;
|
p->textflag = 7;
|
||||||
p->to.type = D_CONST;
|
p->to.type = D_CONST;
|
||||||
p->link = nil;
|
p->link = nil;
|
||||||
p->pc = pc++;
|
p->pc = pc++;
|
||||||
|
@ -640,7 +640,7 @@ ldmacho(Biobuf *f, char *pkg, int64 len, char *pn)
|
|||||||
p->as = ATEXT;
|
p->as = ATEXT;
|
||||||
p->from.type = D_EXTERN;
|
p->from.type = D_EXTERN;
|
||||||
p->from.sym = s;
|
p->from.sym = s;
|
||||||
p->from.scale = 7;
|
p->textflag = 7;
|
||||||
p->to.type = D_CONST;
|
p->to.type = D_CONST;
|
||||||
p->link = nil;
|
p->link = nil;
|
||||||
p->pc = pc++;
|
p->pc = pc++;
|
||||||
|
Loading…
Reference in New Issue
Block a user