Page 1 of 1

linker script vs grub

Posted: Thu Jan 22, 2009 10:19 pm
by aflag
Grub say that the format is invalid (error 13) if I do something like this on the linker script:

Code: Select all

 
. = 0x1000000;
.start : {
    *(.start) 
}
. = 0xc0000000;
but if I do this

Code: Select all

. = 0x1000000;
.start : {
    *(.start)
} 
. += 0xc0000000;
grub doesn't complain at all. Why does that happen? I intend to place my kernel at 16MB physical address and it should start at 0xc0000000 on virtual address.

Re: linker script vs grub

Posted: Sat Jan 24, 2009 5:17 pm
by Love4Boobies
Would you mind showing us the rest of the script? Also, what format would we be talking about?