This website requires JavaScript.
Explore
Help
Sign In
Aren
/
toaruos
Watch
1
Star
0
Fork
0
You've already forked toaruos
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
b2652c7bd1
toaruos
/
modules
/
link.ld
21 lines
137 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Initial work on modules There's a lot here, so let's through it: - Lots of work to include a symbol table in the kernel. We can't rely on our bootloader to give us our own ELF information, so we do this separately. This probably should be changed to output a C source rather than assembly, but that's a TODO. - Makefile can now generate modules. It works basically the same way any other kernel object works, expect with a slightly different linking scheme. - Commands have been added to the debug shell to load modules, but they don't work yet - still need to get through relocation and linking. - Commands have been added to the debug shell to print the symbol list, as well as print symbol values (but note that printing symbol values is kinda dangerous if you don't know what they are, so don't just go printing things willy-nilly).
2014-03-10 06:36:28 +04:00
SECTIONS
{
.text :
{
*(.text*)
*(.rodata)
}
.data :
{
*(.data*)
}
.bss :
{
*(.bss*)
}
Module dependencies
2014-03-19 07:11:56 +04:00
.moddeps :
{
*(.moddeps)
}
Initial work on modules There's a lot here, so let's through it: - Lots of work to include a symbol table in the kernel. We can't rely on our bootloader to give us our own ELF information, so we do this separately. This probably should be changed to output a C source rather than assembly, but that's a TODO. - Makefile can now generate modules. It works basically the same way any other kernel object works, expect with a slightly different linking scheme. - Commands have been added to the debug shell to load modules, but they don't work yet - still need to get through relocation and linking. - Commands have been added to the debug shell to print the symbol list, as well as print symbol values (but note that printing symbol values is kinda dangerous if you don't know what they are, so don't just go printing things willy-nilly).
2014-03-10 06:36:28 +04:00
}
Reference in New Issue
Copy Permalink