diff options
Diffstat (limited to 'src/cmd/8l/asm.c')
| -rw-r--r-- | src/cmd/8l/asm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/8l/asm.c b/src/cmd/8l/asm.c index 797209169..a7f894aa2 100644 --- a/src/cmd/8l/asm.c +++ b/src/cmd/8l/asm.c @@ -642,7 +642,7 @@ asmb(void) asmlc(); if(dlm) asmdyn(); - if(HEADTYPE == 10) + if(HEADTYPE == 10 || (iself && !debug['s'])) strnput("", INITRND-(8+symsize+lcsize)%INITRND); cflush(); seek(cout, symo, 0); @@ -884,8 +884,8 @@ asmb(void) ph->off = symo; ph->vaddr = symdatva; ph->paddr = symdatva; - ph->filesz = 8+symsize+lcsize; - ph->memsz = 8+symsize+lcsize; + ph->filesz = rnd(8+symsize+lcsize, INITRND); + ph->memsz = rnd(8+symsize+lcsize, INITRND); ph->align = INITRND; } |
