linker script vs grub

Programming, for all ages and all languages.
Post Reply
aflag
Posts: 1
Joined: Thu Jan 22, 2009 10:11 pm

linker script vs grub

Post 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.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: linker script vs grub

Post by Love4Boobies »

Would you mind showing us the rest of the script? Also, what format would we be talking about?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply