Skip to content

When there are global variables, it will fail to load #1

@cisk123

Description

@cisk123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions