aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-08-19 17:30:27 +0200
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-08-19 17:30:27 +0200
commit26355173f710eea899f55c96cb7dc5f3b5a3bf42 (patch)
tree1e6953da414fadcf144b28d34fe991c17cf59aa3
parent36e440862c458ef87dac7955f230a46c03dc4f13 (diff)
downloadparadox-26355173f710eea899f55c96cb7dc5f3b5a3bf42.tar.xz
bootstrap: put strings in the data section
-rwxr-xr-xbootstrap.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstrap.lua b/bootstrap.lua
index c0243c6..f7308fa 100755
--- a/bootstrap.lua
+++ b/bootstrap.lua
@@ -271,7 +271,10 @@ local function compile_fn()
print("ret")
+ print("section .data")
io.write(strings)
+ print("section .text")
+
print("end_" .. fn_id .. ":")
end