[Q] linker script
Posted: Wed Jul 03, 2013 9:36 am
Hello
After building a cross compiler I built the example given in the tutorials and everything was perfect but I couldn't understand anything about the codes in boot.s and the linker script. I just wanted to build a very simple kernel that only shows a Hello kernel. I wrote the assembly for the kernel loader with nasm syntax but it didn't compiled with 'as' and I changed something and then I was able to build it. But my other problem was that I didn't know how to write a suitable linker script. I used the one in osdever example but when I wanted to link every thing it sayed that undefined refrence to k_main.
Can anyone help me with the assembly kernel loader and linker script please?
After building a cross compiler I built the example given in the tutorials and everything was perfect but I couldn't understand anything about the codes in boot.s and the linker script. I just wanted to build a very simple kernel that only shows a Hello kernel. I wrote the assembly for the kernel loader with nasm syntax but it didn't compiled with 'as' and I changed something and then I was able to build it. But my other problem was that I didn't know how to write a suitable linker script. I used the one in osdever example but when I wanted to link every thing it sayed that undefined refrence to k_main.
Can anyone help me with the assembly kernel loader and linker script please?