Fix shared object relcations with multiple static arrays (#2121)

This commit is contained in:
jackcmay
2018-12-12 08:41:45 -08:00
committed by GitHub
parent fa98434096
commit cefbb7c27d
3 changed files with 18 additions and 2 deletions

View 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;
}