7l: don't hardcode 4k pagesize, use INITRND

This commit is contained in:
cinap_lenrek 2019-05-17 18:14:10 +02:00
parent 335e019746
commit e0c19ae048
2 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ asmb(void)
seek(cout, OFFSET, 0);
break;
case 6: /* no header, padded segments */
OFFSET = rnd(HEADR+textsize, 4096);
OFFSET = rnd(HEADR+textsize, INITRND);
seek(cout, OFFSET, 0);
break;
}
@ -132,7 +132,7 @@ asmb(void)
seek(cout, OFFSET, 0);
break;
case 6: /* no header, padded segments */
OFFSET += rnd(datsize, 4096);
OFFSET += rnd(datsize, INITRND);
seek(cout, OFFSET, 0);
break;
case 7:

View file

@ -35,8 +35,8 @@ isobjfile(char *f)
/*
* -H0 no header
* -H2 -T0x100028 -R0x100000 is plan9 format
* -H6 -R4096 no header with segments padded to pages
* -H2 -T0x100028 -R0x100000 is plan9 format
* -H6 -R0x10000 no header with segments padded to pages
* -H7 is elf
*/