Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Below is my linker script, when I try to link with it, LD illegal ops (I'm using windows 98 SE). If I comment out the output format line it will work, it's only when I try to make LD output a binary file that it doesn't work. I have LD version 2.9.4 with BFD version 2.9.4 as well.
EDIT: LOL was in such a hurry I forgot the script :D *smacks self on forehead* I couldn't find a newer version for windows. They're up to 2.14, but I'm not interested in compiling a source tarball.
That's what I'm doing right now, but objcopy apparently isn't handling read only data right, so string constants break the kernel. I either need to get LD to output a flat binary, or I need objcopy to handle the sections right.
Hi,
I think you are linking you text section into video memory address
0xA0000 is the start address for graphics video modes. Change your link address for text section and see if that helps.
if it doesn't then, there is something else wrong in the code it self.