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