Page 2 of 2
Re:bootloader int 0x13 loading floppy tracks
Posted: Wed Feb 04, 2004 2:45 pm
by Tim
That's basically what I said.
You could relocate everything, or if you set [file alignment] = [section alignment] = 4096 and load at the preferred base address, you don't have to do anything.
Re:bootloader int 0x13 loading floppy tracks
Posted: Wed Feb 04, 2004 5:21 pm
by slacker
Tim Robinson wrote:
You could relocate everything, or if you set [file alignment] = [section alignment] = 4096 and load at the preferred base address, you don't have to do anything.
this doesnt seem to work. i am using the microsoft linker...
Re:bootloader int 0x13 loading floppy tracks
Posted: Thu Feb 05, 2004 12:22 pm
by slacker
do i have to relocate anything besides the section headers?
Re:bootloader int 0x13 loading floppy tracks
Posted: Thu Feb 05, 2004 12:47 pm
by Tim
Maybe I need to make this clearer:
EITHER relocate everything according to the PE spec.
OR make sure you load at the image's preferred base address.
IF you set the base address to 0010_0000, AND you load the image at 0010_0000, AND the file alignment and section alignment are set to the same value, you don't have to do anything.
Re:bootloader int 0x13 loading floppy tracks
Posted: Mon Jun 28, 2004 4:43 pm
by slacker
Tim Robinson wrote:
Maybe I need to make this clearer:
EITHER relocate everything according to the PE spec.
OR make sure you load at the image's preferred base address.
IF you set the base address to 0010_0000, AND you load the image at 0010_0000, AND the file alignment and section alignment are set to the same value, you don't have to do anything.
my file alignment and section alignment are the same and i set the base address to 0x10000.
According to the PE Spec im reading, when i look at the section headers, they give virtual addresses that i must load them to so i have to relocate regardless that my alignment is the same...