X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=pcboot.ld;h=e2c0308546e952dde858fbc1d2e0619a7c8a3db1;hp=4879417921d99b8293e885592eaaf6db7bc34970;hb=3cb6f9dad7e37db865bd3cbccf0b5d6471fdd73f;hpb=eb934abaf0dcfa48589c6ac15f2a2ff235c5aea0 diff --git a/pcboot.ld b/pcboot.ld index 4879417..e2c0308 100644 --- a/pcboot.ld +++ b/pcboot.ld @@ -7,7 +7,11 @@ SECTIONS { .boot : { * (.boot); } /* second stage boot loader */ - .boot2 : { * (.boot2); } + .boot2 : { + * (.boot2); + /* pad the boot loader to the next sector boundary */ + . = ALIGN(512); + } _boot2_size = SIZEOF(.boot2); /* main program will be loaded at 1MB by the second stage