Hello,
When there are global variables, it will fail to load
` #define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
int num = 0;
void run(void) {
num = 1;
puts("Hello from lib_sample.so!");
return;
}
attribute ((constructor)) void init(void) {
puts("Lib initialized successfully!");
return;
} `
./test64 lib_sample64.so run 1