hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 870ad48578316a57310023a2a6cb160f71b2bf0d
parent 4c29f54dfadb6ec656f5032e16df4135e06524a3
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 11 Feb 2021 11:29:45 -0500

rt: update hare.sc for gc sections

Diffstat:
Mrt/hare.sc | 49+++++++++++++++++++++++++++++--------------------
1 file changed, 29 insertions(+), 20 deletions(-)

diff --git a/rt/hare.sc b/rt/hare.sc @@ -1,26 +1,35 @@ SECTIONS { - . = 0x10000; - .text : { *(.text) } - . = 0x8000000; - .data : { *(.data) } + . = 0x10000; + .text : { + KEEP (*(.text)) + *(.text.*) + } + . = 0x8000000; + .data : { + KEEP (*(.data)) + *(.data.*) + } - .init_array : { - PROVIDE_HIDDEN (__init_array_start = .); - KEEP (*(.init_array)) - PROVIDE_HIDDEN (__init_array_end = .); - } + .init_array : { + PROVIDE_HIDDEN (__init_array_start = .); + KEEP (*(.init_array)) + PROVIDE_HIDDEN (__init_array_end = .); + } - .fini_array : { - PROVIDE_HIDDEN (__fini_array_start = .); - KEEP (*(.fini_array)) - PROVIDE_HIDDEN (__fini_array_end = .); - } + .fini_array : { + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP (*(.fini_array)) + PROVIDE_HIDDEN (__fini_array_end = .); + } - .test_array : { - PROVIDE_HIDDEN (__test_array_start = .); - KEEP (*(.test_array)) - PROVIDE_HIDDEN (__test_array_end = .); - } + .test_array : { + PROVIDE_HIDDEN (__test_array_start = .); + KEEP (*(.test_array)) + PROVIDE_HIDDEN (__test_array_end = .); + } - .bss : { *(.bss) } + .bss : { + KEEP (*(.bss)) + *(.bss.*) + } }