when will __attribute__((constructor)) NOT called

Yubin Ruan ablacktshirt@gmail.com
Wed Sep 6 10:37:00 GMT 2017


I saw somewhere that "__attribute__((constructor)) will make GCC
create a '.ctor' section in the generated .so file, which is run when
a shared library is loaded, typically at program startup".

A question:
  Are there any case where "__attribute__((constructor))" will not be run?

Thanks,
Yubin



More information about the Libc-help mailing list