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.
a while back i experienced a similar problem after upgrading versions of gcc where the gnu folk had decided to create some new sections and relocate some code to them.
after some small alterations to my linker script it now works again..here is my linker script (c++ kernel)
the text is now printed at the top of the screen (this meen that datas are now in the good place), but it still hangs when it try to call the pointer to function, i think there is an alignement problem with bss...
aladdin wrote:
@Pype.Clicker : thank you very much, that's work ;D
but still don't understand why it was working with old linked and don't with the new one ???
BTW : i didn't know that we can access ld script variabls from C code
see <explanation/> above ...
1. the old code leave no "comment" section, so there's nothing in memory at the place where .bss should be... thus it's read as zeroes (as expected, but by chance) on emulators ... on real hardware, it may not work.
or
2. the old code *had* comment, but it had more space wasted in 0-padding so the chance are good that your last-used-index byte *actually* contains 0 ...
PS: si t'y comprends plus rien, contacte-moi par ICQ et je te r?explique