Fix shared object relcations with multiple static arrays (#2121)
This commit is contained in:
10
programs/bpf/c/src/multiple_static.c
Normal file
10
programs/bpf/c/src/multiple_static.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <solana_sdk.h>
|
||||
|
||||
static const char msg[] = "This is a message";
|
||||
static const char msg2[] = "This is a different message";
|
||||
|
||||
extern bool entrypoint(const uint8_t *input) {
|
||||
sol_log((char*)msg);
|
||||
sol_log((char*)msg2);
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user