#149372 - Dwedit - Sat Jan 19, 2008 9:15 am
I'm working on a C++ program.
The linker loves to add a handler to call destructors when the program finishes because there are static or global objects. Here, it's adding __aeabi_atexit, and it's big group of friends to handle destruction of those objects when the program exits.
Exits? Where? How does an NDS program exit?
So I'm making a dummy function here
to make the linker not include code for __aeabi_atexit, and this actually works.
Is there a better way to do this which is not a complete and utter hack?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."
The linker loves to add a handler to call destructors when the program finishes because there are static or global objects. Here, it's adding __aeabi_atexit, and it's big group of friends to handle destruction of those objects when the program exits.
Exits? Where? How does an NDS program exit?
So I'm making a dummy function here
Code: |
extern "C" {
void __aeabi_atexit() { } } |
to make the linker not include code for __aeabi_atexit, and this actually works.
Is there a better way to do this which is not a complete and utter hack?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."