diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-09 16:20:29 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-09 16:20:29 +0900 |
| commit | 5777e33c2a2025bd0cbb7984882f16e25c84b774 (patch) | |
| tree | f32404cd6753ff0a4f939db48d5ef5cd9907d4ff | |
| parent | 49602f636d68ae34342b35121a85f50838ea92f3 (diff) | |
| download | mruby-5777e33c2a2025bd0cbb7984882f16e25c84b774.tar.gz mruby-5777e33c2a2025bd0cbb7984882f16e25c84b774.zip | |
doc/guides/mrbconf.rb: add `RO_DATA` configuration description; #5547
| -rw-r--r-- | doc/guides/mrbconf.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/guides/mrbconf.md b/doc/guides/mrbconf.md index c24213743..e71346ae6 100644 --- a/doc/guides/mrbconf.md +++ b/doc/guides/mrbconf.md @@ -151,9 +151,18 @@ largest value of required alignment. ## Reduce heap memory configuration +`MRB_USE_ETEXT_RO_DATA_P` + +* Use `etext` and `edata` section addresses defined by the linker to detect read-only data. +* Those addresses are widely available, but not portable, nor standardized. +* This macro is defined by default on User-mode Linux. + +`MRB_NO_DEFAULT_RO_DATA_P` + +* Define this macro when the default `mrb_ro_data_p()` does not work for any reason. + `MRB_USE_CUSTOM_RO_DATA_P` -* Takes precedence over `MRB_USE_LINK_TIME_RO_DATA_P`. * Please try if `MRB_USE_LINK_TIME_RO_DATA_P` is not available. * The `mrb_ro_data_p()` function is implemented by the user in an arbitrary file. * The prototype declaration is `mrb_bool mrb_ro_data_p(const char *ptr)`. |
