diff options
| author | Russ Cox <rsc@golang.org> | 2010-12-08 15:44:59 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-12-08 15:44:59 -0500 |
| commit | 839abc2ea7de28a6544ddd4822c465f5eec960fe (patch) | |
| tree | 0cd13d0cd6f1914ff5cf66b251e0a6f75c276ce8 /src/cmd/ld/ldelf.c | |
| parent | b8562ff488e48563945764fe42c2cbae1efd4452 (diff) | |
| download | go-839abc2ea7de28a6544ddd4822c465f5eec960fe.tar.xz | |
5l (and 6l, 8l, ld): more arm build fixes
R=ken2
CC=golang-dev
https://golang.org/cl/3521041
Diffstat (limited to 'src/cmd/ld/ldelf.c')
| -rw-r--r-- | src/cmd/ld/ldelf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/ld/ldelf.c b/src/cmd/ld/ldelf.c index 6d5b541180..feda761394 100644 --- a/src/cmd/ld/ldelf.c +++ b/src/cmd/ld/ldelf.c @@ -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++; |
