need help linking asm files
Posted: Fri Sep 01, 2006 9:20 pm
i am using link.ld for the djgpp linker;
it works corectly on all O-files exept those made by nasm so i cant start my kernel and that gets agervating any ideas.
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
}