summaryrefslogtreecommitdiff
path: root/src/cmd/5l/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/5l/asm.c')
-rw-r--r--src/cmd/5l/asm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/5l/asm.c b/src/cmd/5l/asm.c
index f7cbccec5..79050a9d0 100644
--- a/src/cmd/5l/asm.c
+++ b/src/cmd/5l/asm.c
@@ -393,8 +393,8 @@ asmb(void)
int32 t, etext;
int a, dynsym;
uint32 va, fo, w, symo, startva;
+ uint32 symdatva = SYMDATVA;
int strtabsize;
- vlong symdatva = SYMDATVA;
Optab *o;
ElfEhdr *eh;
ElfPhdr *ph, *pph;
@@ -522,6 +522,10 @@ asmb(void)
if(dlm)
asmdyn();
cflush();
+ seek(cout, symo, 0);
+ lputl(symsize);
+ lputl(lcsize);
+ cflush();
}
else if(dlm){
seek(cout, HEADR+textsize+datsize, 0);