~tim/dlopen_test

305973ddad019993bdd9eed4bb4dfa240b04bf7b — Tim Morgan 2 years ago 3a52170
Add comment about gcc attribute
1 files changed, 2 insertions(+), 0 deletions(-)

M lib.c
M lib.c => lib.c +2 -0
@@ 1,5 1,7 @@
#include "stdio.h"

// https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
// gcc only? what happens with clang?
void __attribute__ ((constructor)) lib_loaded(void);

void lib_loaded(void) {