From 6b956f1c1b18e69529ba4daef886ff7c11621656 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 2 Oct 2014 09:27:39 +0900 Subject: use __init_array_start to determine readonly data section; b72e94f used _etext and _edata to distinguish C string literals from heap allocated strings, but using _edata, global char arrays may be considered as string literals. to avoid the issue, we have to use __init_array_start, which might be less portable. you can still use _edata, by using MRB_NO_INIT_ARRAY_START. --- include/mrbconf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/mrbconf.h') diff --git a/include/mrbconf.h b/include/mrbconf.h index 0195ae96f..95d4b3637 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -41,6 +41,10 @@ /* if _etext and _edata available, mruby can reduce memory used by symbols */ //#define MRB_USE_ETEXT_EDATA +/* do not use __init_array_start to determine readonly data section; + effective only when MRB_USE_ETEXT_EDATA is defined */ +//#define MRB_NO_INIT_ARRAY_START + /* turn off generational GC by default */ //#define MRB_GC_TURN_OFF_GENERATIONAL -- cgit v1.2.3