123379200-1847296
121531904

perl -e "$k=(-s 'iplcd.bin');$a=0x168000-$k;for(1..($a/1000000)){print qq(\0)x1000000;}print qq(\0)x ($a % 1000000)" >> iplcd.bin

gcc -nostdlib -static -L../../lib -Ttext=0x7c00 ipl09.obj -W,"T binary.lds" -o ipl09.bin

ld -nostdlib -static -L../../lib -Ttext=0x7c00 ipl09.obj -T binary.lds -o ipl09.bin

ld -nostdlib -static -L../../lib -Ttext=0x7c00 ipl09.obj -o ipl09.bin

..\..\z_tools\nask.exe ipl09.nas ipl09.obj ipl09.lst

ld -r -Ttext 0x0 -e _start -s -o bootsect.out bootsect.o

(we use a relocatable '-r' link because a final link would add the
__CTOR_LIST__ and __DTOR_LIST__ data in the text section; a relocatable link
will resolve any stray relocs for us without adding those tables), followed by
an objcopy like so:

objcopy -O binary -j .text bootsect.out bootsect

objcopy -O binary -j .text ipl09.bin ipl09.sec

.\mkisofs -no-emul-boot -b iplcd.bin -o ../cd.iso  ../cd
