7l: don't hardcode 4k pagesize, use INITRND
This commit is contained in:
parent
335e019746
commit
e0c19ae048
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue