Calling global constructors, linking problem
Posted: Mon Aug 10, 2015 5:42 am
Hello everyone,
I'm pretty new to OS development, and as such, I've a problem.
After doing the basic stuff (bare bones, meaty skeleton, etc) and basing my own OS on it, I decided to try and call the global constructors, because it isn't much work to do so.
However, trying to do this as described in the meaty skeleton wiki page, my linker refuses to link, saying that there are multiple definitions of _init and _ fini.
I've searched the forums, google and the wiki for over a day now, and I found nothing that solved my problem.
If any of you guys could help me out with this, I would greatly appreciate it.
Some information about my setup:
Linux: Kali linux x64 version 1.1.0a (latest release at this time).
GCC version: 4.8.2 (ofcourse builded as an cross-compiler).
Binutils version: 2.24.
A link to my OS github page (is easier then pasting files here).
If you need any more information, please let me know.
Dennis
I'm pretty new to OS development, and as such, I've a problem.
After doing the basic stuff (bare bones, meaty skeleton, etc) and basing my own OS on it, I decided to try and call the global constructors, because it isn't much work to do so.
However, trying to do this as described in the meaty skeleton wiki page, my linker refuses to link, saying that there are multiple definitions of _init and _ fini.
I've searched the forums, google and the wiki for over a day now, and I found nothing that solved my problem.
If any of you guys could help me out with this, I would greatly appreciate it.
Some information about my setup:
Linux: Kali linux x64 version 1.1.0a (latest release at this time).
GCC version: 4.8.2 (ofcourse builded as an cross-compiler).
Binutils version: 2.24.
A link to my OS github page (is easier then pasting files here).
If you need any more information, please let me know.
Dennis