bootloader int 0x13 loading floppy tracks

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Tim

Re:bootloader int 0x13 loading floppy tracks

Post 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.
slacker

Re:bootloader int 0x13 loading floppy tracks

Post 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...
slacker

Re:bootloader int 0x13 loading floppy tracks

Post by slacker »

do i have to relocate anything besides the section headers?
Tim

Re:bootloader int 0x13 loading floppy tracks

Post 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.
slacker

Re:bootloader int 0x13 loading floppy tracks

Post 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...
Post Reply