Bran's Kernel Development
Posted: Sun Sep 14, 2008 8:10 am
I've been working my way through Bran's Kernel Development Tutorial, something i'm sure many of you are familiar with (if not, it can be found here.. http://osdever.net/bkerndev/Docs/basickernel.htm).
I dont have a problem until I try to link a c file that contains an .rodata section (i.e. I have passed a string literal as a parameter). If I do this, the final binary which is outputted by the linker contains only the rodata section and seemingly nothing else except a load of nulls. There is no code whatsoever.
Could someone please take a look at the linker script and help me work out why this is happening?
Thanks in advance.
PS. (Apologies if I put this thread in the wrong section, I'm new here.)
I dont have a problem until I try to link a c file that contains an .rodata section (i.e. I have passed a string literal as a parameter). If I do this, the final binary which is outputted by the linker contains only the rodata section and seemingly nothing else except a load of nulls. There is no code whatsoever.
Could someone please take a look at the linker script and help me work out why this is happening?
Thanks in advance.
PS. (Apologies if I put this thread in the wrong section, I'm new here.)