hare

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

commit e06af7592242862e95c1a200e711f7bb57802628
parent 4e14a7abd2ba1ee42f7ce61fb30aac2832846faa
Author: Alexey Yerin <yyp@disroot.org>
Date:   Thu,  8 Jun 2023 21:00:51 +0300

+libc: include empty .init_array section

Some systems require __init_array_start and __init_array_end symbols.

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mrt/hare+libc.sc | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/rt/hare+libc.sc b/rt/hare+libc.sc @@ -14,6 +14,11 @@ SECTIONS { *(.rela.plt) } + .init_array : { + PROVIDE_HIDDEN (__init_array_start = .); + PROVIDE_HIDDEN (__init_array_end = .); + } + .libc_init_array : { PROVIDE_HIDDEN (__libc_init_array_start = .); KEEP (*(.init_array))