X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=pcboot.ld;h=6a2390fa3b1a3659ff76f8bbb4d904e156358da0;hp=4879417921d99b8293e885592eaaf6db7bc34970;hb=7b6f6de2124e28ae7da5599a7cdaf2c171c4f15e;hpb=eb934abaf0dcfa48589c6ac15f2a2ff235c5aea0 diff --git a/pcboot.ld b/pcboot.ld index 4879417..6a2390f 100644 --- a/pcboot.ld +++ b/pcboot.ld @@ -7,7 +7,14 @@ SECTIONS { .boot : { * (.boot); } /* second stage boot loader */ - .boot2 : { * (.boot2); } + .boot2 : { + * (.boot2); + * (.lowtext); + /* .bootend must stay last */ + * (.bootend); + /* 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