harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 10baff0e69f05d04e6a273216f9baefcfc91ee50
parent c3e77a3b5182c3f0edd9ea9ffd9b226938172eae
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 12 Jan 2021 16:16:40 -0500

rt/rtmain: bind init/fini array as const

Diffstat:
Mrt/rtmain.ha | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/rt/rtmain.ha b/rt/rtmain.ha @@ -1,9 +1,9 @@ @symbol("main") fn main() int; -let @symbol("__init_array_start") init_start: [*]*fn() void; -let @symbol("__init_array_end") init_end: [*]*fn() void; -let @symbol("__fini_array_start") fini_start: [*]*fn() void; -let @symbol("__fini_array_end") fini_end: [*]*fn() void; +const @symbol("__init_array_start") init_start: [*]*fn() void; +const @symbol("__init_array_end") init_end: [*]*fn() void; +const @symbol("__fini_array_start") fini_start: [*]*fn() void; +const @symbol("__fini_array_end") fini_end: [*]*fn() void; export fn start_ha(iv: [*]uintptr) void = { const ninit = (&init_end: uintptr - &init_start: uintptr): size