Re: Using string literals
Posted: Wed Dec 23, 2009 1:35 am
Aphex wrote:Out of curiosity, what makes you think I am not trying to execute a fully functioning executable or binary file?
The fact that you were specifying an .o file (intermediate object) to output, though once again I had not fully processed the thread and so was simply throwing a potential possibility out there. Without seeing the full process you use to compile your kernel in the order you perform it in (all I saw at a glance were a couple of commands scattered through your post) I could not tell for sure. AFAIK that does produce a "working" executable, just with an odd extension, but I was a bit pressed for time and could not think through what all those commands do.Aphex wrote: ld -e _call_start -Ttext 0x1000 -o kernel.o main.o
ld -i -e _call_start -Ttext 0x1000 -o kernel.o main.o