Closed madsmtm closed 1 month ago
__attribute__((constructor)) does not mark the symbol as used, so the linker ends up dead-stripping the symbol when linked statically.
__attribute__((constructor))
Adding the used attribute fixes that.
used
Thanks so much!
__attribute__((constructor))
does not mark the symbol as used, so the linker ends up dead-stripping the symbol when linked statically.Adding the
used
attribute fixes that.