/* Script for -N: mix text and data on same page; don't align data */
OUTPUT_FORMAT("coff-m68k-sysv")
OUTPUT_ARCH(m68k)
ENTRY(_start)
SEARCH_DIR("/usr/pkg/cross/i386-linux/lib");
SECTIONS
{
  .text  0x2000 + SIZEOF_HEADERS :
    {
       __.text.start = .;
      *(.text)
       etext  =  .;
       _etext  =  .;
       __.text.end = .;
       __CTOR_LIST__ = .;
       LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
       *(.ctors)
       LONG(0)
       __CTOR_END__ = .;
       __DTOR_LIST__ = .;
       LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
       *(.dtors)
       LONG(0)
       __DTOR_END__ = .;
    }
  .data  SIZEOF(.text) + ADDR(.text) + 0x400000 :
    {
       __.data.start = .;
      *(.data)
       edata  =  .;
       _edata  =  .;
       __.data.end = .;
    }
  .bss  SIZEOF(.data) + ADDR(.data) :
    {
       __.bss.start = .;
      *(.bss)
      *(COMMON)
       __.bss.end = .;
       end = ALIGN(0x8);
       _end = ALIGN(0x8);
    }
  .comment  0 :
    {
      *(.comment)
    }
}
