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.
bootloader int 0x13 loading floppy tracks
Re:bootloader int 0x13 loading floppy tracks
this doesnt seem to work. i am using the microsoft linker...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.
Re:bootloader int 0x13 loading floppy tracks
do i have to relocate anything besides the section headers?
Re:bootloader int 0x13 loading floppy tracks
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.
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
my file alignment and section alignment are the same and i set the base address to 0x10000.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.
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...