hare

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

hare.sc (695B)


      1 PHDRS {
      2 	headers PT_PHDR PHDRS;
      3 	text PT_LOAD FILEHDR PHDRS;
      4 	data PT_LOAD;
      5 }
      6 ENTRY(_start);
      7 SECTIONS {
      8 	. = 0x8000000;
      9 	.text : {
     10 		KEEP (*(.text))
     11 		*(.text.*)
     12 	} :text
     13 	. = 0x80000000;
     14 	.data : {
     15 		KEEP (*(.data))
     16 		*(.data.*)
     17 	} :data
     18 
     19 	.init_array : {
     20 		PROVIDE_HIDDEN (__init_array_start = .);
     21 		KEEP (*(.init_array))
     22 		PROVIDE_HIDDEN (__init_array_end = .);
     23 	} :data
     24 
     25 	.fini_array : {
     26 		PROVIDE_HIDDEN (__fini_array_start = .);
     27 		KEEP (*(.fini_array))
     28 		PROVIDE_HIDDEN (__fini_array_end = .);
     29 	} :data
     30 
     31 	.test_array : {
     32 		PROVIDE_HIDDEN (__test_array_start = .);
     33 		KEEP (*(.test_array))
     34 		PROVIDE_HIDDEN (__test_array_end = .);
     35 	} :data
     36 
     37 	.bss : {
     38 		KEEP (*(.bss))
     39 		*(.bss.*)
     40 	} :data
     41 }