spicyfish / freenos

Automatically exported from code.google.com/p/freenos
GNU General Public License v3.0
0 stars 0 forks source link

REGISTER() does not work for the target system #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The REGISTER() function adds a callback to a List, but currently
only works for host systems, as it internally uses
__attribute__((constructor)).
REGISTER() is currently used at least in the ELF class in libexec, to register
itself to the ExecutableFormat::formats List. We should modify REGISTER() (and
perhaps libcrt) to also support target systems.

Original issue reported on code.google.com by coenbijlsma on 7 Aug 2009 at 11:22

GoogleCodeExporter commented 9 years ago
ORIGINAL COMMENT FROM nieklinnenbank
The REGISTER() macro has been removed from Init.h. We now explicitely register
ELF::detect in ExecutableFormat. 

Original comment by coenbijlsma on 7 Aug 2009 at 11:22