harec

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

commit c36748c96ede909d985f6766f9a1a02647c582f8
parent a87c174a1935f60e917f77c22d9c2cb7202b9088
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 24 Oct 2021 10:01:31 +0200

hare.sc: add PHDRS

This is necessary for FreeBSD support.

Diffstat:
Mrt/hare.sc | 17+++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)

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