I cannot help but think that if the problem were this simple someone would have noticed this already.Schol-R-LEA wrote:I sincerely apologize for this. This is a genuine failure on the part of this group, and points to a real need to review all of the older material in the wiki, especially in the parts aimed at new OS-Devvers.
In this case, the solution - which is the solution that the wiki should have emphasized more in the first place - is to add an .rodata section to your linker script.
The problem is that we have no information of how the code is being booted. Is the OP following bare bones? Who knows? And is the OP using a cross-compiler? I'm 101% sure what the answer to that is. So the real problem is not with the code or the computer or whatever. It is the abysmally framed question. (It doesn't work. Why doesn't it work? That's it.) I assure you, such a question wouldn't get the same treatment on SE - they wouldn't bother; they'd just delete it.