From cc6dc9d33687bcc41fa7f5fdb0253e6f1ca724d6 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 27 Nov 2022 17:48:42 +0400 Subject: [PATCH] Disable Ruby preallocated symbols --- build_config.rb | 3 +++ src/Makefile | 1 + 2 files changed, 4 insertions(+) diff --git a/build_config.rb b/build_config.rb index a97be0c..4bd3029 100644 --- a/build_config.rb +++ b/build_config.rb @@ -4,10 +4,13 @@ DEST_DIR = File.join(ROOT_DIR, 'dest').freeze MRuby::CrossBuild.new 'mrubyvisor' do |conf| conf.toolchain :gcc + conf.disable_presym + conf.cc.defines << 'MRB_NO_BOXING' << 'MRB_NO_FLOAT' << 'MRB_NO_GEMS' << + 'MRB_NO_PRESYM' << 'MRB_NO_STDIO' conf.cc.flags << diff --git a/src/Makefile b/src/Makefile index 8c728a7..51efeae 100644 --- a/src/Makefile +++ b/src/Makefile @@ -21,6 +21,7 @@ CPPFLAGS = \ -DMRB_NO_BOXING \ -DMRB_NO_FLOAT \ -DMRB_NO_GEMS \ + -DMRB_NO_PRESYM \ -DMRB_NO_STDIO OBJS = start.S.o main.c.o