1 /* /boot must be a.out, OMAGIC starting from 0x6000. */ 2 /* ... but new binutils don't support a.out anymore... 3 OUTPUT_FORMAT("a.out-m68k-netbsd", "a.out-m68k-netbsd", 4 "a.out-m68k-netbsd") 5 */ 6 OUTPUT_ARCH(m68k) 7 ENTRY(start) 8 SEARCH_DIR(/usr/lib); 9 /*__DYNAMIC = 0; */ 10 PROVIDE (__stack = 0); 11 SECTIONS 12 { 13 . = 0x6000; 14 .text : 15 { 16 CREATE_OBJECT_SYMBOLS 17 *(.text) 18 *(.rodata) 19 *(.rodata.str1.1) 20 /* The next six sections are for SunOS dynamic linking. The order 21 is important. */ 22 *(.dynrel) 23 *(.hash) 24 *(.dynsym) 25 *(.dynstr) 26 *(.rules) 27 *(.need) 28 etext = .; 29 _etext = .; 30 } 31 /* . = ALIGN(0x2000); */ 32 .data : 33 { 34 /* The first three sections are for SunOS dynamic linking. */ 35 *(.dynamic) 36 *(.got) 37 *(.plt) 38 *(.data) 39 *(.linux-dynamic) /* For Linux dynamic linking. */ 40 CONSTRUCTORS 41 edata = .; 42 _edata = .; 43 } 44 .bss : 45 { 46 __bss_start = .; 47 *(.bss) 48 *(COMMON) 49 end = ALIGN(4) ; 50 _end = ALIGN(4) ; 51 } 52 /DISCARD/ : { 53 *(.ident) 54 *(.stab) 55 *(.stabstr) 56 *(.comment) 57 *(.debug_abbrev) 58 *(.debug_info) 59 *(.debug_line) 60 *(.debug_loc) 61 *(.debug_pubnames) 62 *(.debug_pubtypes) 63 *(.debug_aranges) 64 *(.debug_ranges) 65 *(.debug_str) 66 *(.debug_frame) 67 *(.eh_frame) 68 *(.SUNW_ctf) 69 } 70 } 71