harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

hare+netbsd.sc (802B)


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