This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

when will __attribute__((constructor)) NOT called


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]