I have noticed that if I declare an array or have a pointer point to a string and I compile and link it, bochs doesn't run it.
The following code is all I added to my screen.c:
Code: Select all
char *msg="hello world¥0";
So i decided to open my kernel.bin with kHexeditor and to my suprise the following showed up:
Code: Select all
hello.world......................................(etc.)
Would anyone know what might be the problem? Could it be the linker script?
I use the following tools and OS:
SuSE Linux 10.1
gcc
ld
nasm
Thanks,
Kenneth