It compiles in Visual Studio 2005.
How can I linking all these obj to a bin file with in VS2005.
Like make it into kernel.bin the final output.
In the compiler/linker settings of the project you can set it to compile as .exe ,.dll,.lib, make , or utility and I don't see anything in the linker setting's for it?
When I am on my linux machine I use the elf or aout format which produces .o object files.
Then I use a linker script
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
*(.rodata)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
}
And issue
ld -T link.ld -o kernel.bin start.o main.o scrn.o gdt.o idt.o isrs.o irq.o .....etc etc.
I want to do the equivalent thru an IDE particularly vs2005.
I don't really under stand linker script's fully yet myself.
The many problem is I want the raw machine code (.bin) not the header and machine code (.exe) when I link I get these error's
Code: Select all
unresolved external symbol _irq6




