Weird linking problem
Posted: Fri Feb 14, 2003 11:23 am
I have a wierd problem when compiling my code and was wondering if anybody knew why.
I assemble my bootloader to binary using nasm and I then assemble my entry point file. When I use "aout" it doesn't print anything to the screen when linked with my C kernel.
But if I use "coff" It does print a message to the screen when linked with my C kernel but it complains about there not being a entry point in my code.
ex: start not found, defaulting to 00100000 as entry point.
I also noticed if I use "coff-go32" as my output for the linker script, I also get nothing on the screen, but if I use "binary" all goes well.
Weird huh? Could it be that because I'm using DJGPP and the "aout" for DJGPP is different from the "aout" for Linux?
I assemble my bootloader to binary using nasm and I then assemble my entry point file. When I use "aout" it doesn't print anything to the screen when linked with my C kernel.
But if I use "coff" It does print a message to the screen when linked with my C kernel but it complains about there not being a entry point in my code.
ex: start not found, defaulting to 00100000 as entry point.
I also noticed if I use "coff-go32" as my output for the linker script, I also get nothing on the screen, but if I use "binary" all goes well.
Weird huh? Could it be that because I'm using DJGPP and the "aout" for DJGPP is different from the "aout" for Linux?