diff options
author | Russ Cox <rsc@golang.org> | 2009-09-24 12:53:35 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-09-24 12:53:35 -0700 |
commit | 5599b7bebffa3a5e22d3d8727ea1ea2b5888665d (patch) | |
tree | b7d237241100cfb25e209b5c6f85a833d9543fb9 /src/cmd/8l/span.c | |
parent | caa629b7c2fd518a6e813c01cb2c6a31b03824d6 (diff) | |
download | golang-5599b7bebffa3a5e22d3d8727ea1ea2b5888665d.tar.gz |
convert 8l to new ELF code.
mostly cut and paste from 6l.
R=r
DELTA=930 (525 added, 182 deleted, 223 changed)
OCL=34976
CL=34976
Diffstat (limited to 'src/cmd/8l/span.c')
-rw-r--r-- | src/cmd/8l/span.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/8l/span.c b/src/cmd/8l/span.c index 7745c361c..71607fcf2 100644 --- a/src/cmd/8l/span.c +++ b/src/cmd/8l/span.c @@ -573,6 +573,18 @@ put4(int32 v) } int32 +symaddr(Sym *s) +{ + Adr a; + + a.type = D_ADDR; + a.index = D_EXTERN; + a.offset = 0; + a.sym = s; + return vaddr(&a); +} + +int32 vaddr(Adr *a) { int t; |