Home | History | Annotate | Line # | Download | only in boot
      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   . = TEXTADDR;
     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   .data :
     32   {
     33     /* The first three sections are for SunOS dynamic linking.  */
     34     *(.dynamic)
     35     *(.got)
     36     *(.plt)
     37     *(.data)
     38     *(.linux-dynamic) /* For Linux dynamic linking.  */
     39     CONSTRUCTORS
     40     edata  =  .;
     41     _edata  =  .;
     42   }
     43   .bss :
     44   {
     45     __bss_start = .;
     46    *(.bss)
     47    *(COMMON)
     48    end = ALIGN(4) ;
     49    _end = ALIGN(4) ;
     50   }
     51   /DISCARD/ : {
     52       *(.ident)
     53       *(.stab)
     54       *(.stabstr)
     55       *(.comment)
     56       *(.debug_abbrev)
     57       *(.debug_info)
     58       *(.debug_line)
     59       *(.debug_loc)
     60       *(.debug_pubnames)
     61       *(.debug_pubtypes)
     62       *(.debug_aranges)
     63       *(.debug_ranges)
     64       *(.debug_str)
     65       *(.debug_frame)
     66       *(.eh_frame)
     67       *(.SUNW_ctf)
     68   }
     69 }
     70