/* /boot must be a.out, OMAGIC starting from 0x6000. */
/* ... but new binutils don't support a.out anymore...
OUTPUT_FORMAT("a.out-m68k-netbsd", "a.out-m68k-netbsd",
             "a.out-m68k-netbsd")
*/
OUTPUT_ARCH(m68k)
ENTRY(start)
SEARCH_DIR(/usr/lib);
/*__DYNAMIC = 0; */
PROVIDE (__stack = 0);
SECTIONS
{
 . = TEXTADDR;
 .text :
 {
   CREATE_OBJECT_SYMBOLS
   *(.text)
   *(.rodata)
   *(.rodata.str1.1)
   /* The next six sections are for SunOS dynamic linking.  The order
      is important.  */
   *(.dynrel)
   *(.hash)
   *(.dynsym)
   *(.dynstr)
   *(.rules)
   *(.need)
   etext = .;
   _etext = .;
 }
 .data :
 {
   /* The first three sections are for SunOS dynamic linking.  */
   *(.dynamic)
   *(.got)
   *(.plt)
   *(.data)
   *(.linux-dynamic) /* For Linux dynamic linking.  */
   CONSTRUCTORS
   edata  =  .;
   _edata  =  .;
 }
 .bss :
 {
   __bss_start = .;
  *(.bss)
  *(COMMON)
  end = ALIGN(4) ;
  _end = ALIGN(4) ;
 }
 /DISCARD/ : {
     *(.ident)
     *(.stab)
     *(.stabstr)
     *(.comment)
     *(.debug_abbrev)
     *(.debug_info)
     *(.debug_line)
     *(.debug_loc)
     *(.debug_pubnames)
     *(.debug_pubtypes)
     *(.debug_aranges)
     *(.debug_ranges)
     *(.debug_str)
     *(.debug_frame)
     *(.eh_frame)
     *(.SUNW_ctf)
 }
}