Symbol in GNU ld script
Posted: Thu Sep 29, 2005 1:45 am
Hi again!
Reading Tim Robinsons' first memory management tutorial, I came across
somewhere, but where? Or can I just write
at the end of the script, just before the final '}' ?
Reading Tim Robinsons' first memory management tutorial, I came across
So after a quick search on google, I found that I should putWe know the address of the start and end of our kernel (you can set a symbol to the end of the kernel image in
a GNU ld script, for example). From this we can work out how big the kernel is so that we can avoid
allocating memory from the kernel?s space ? to allocate memory from the middle of the kernel would be fatal.
Code: Select all
_endofkernel = ABSOLUTE(.) ;
Code: Select all
_endofkernel = . ;