/* Script for -N: mix text and data on same page; don't align data */
/* Copyright (C) 2014-2017 Free Software Foundation, Inc.
   Copying and distribution of this script, with or without modification,
   are permitted in any medium without royalty provided the copyright
   notice and this notice are preserved.  */
OUTPUT_FORMAT("a.out-sunos-big", "a.out-sunos-big",
	      "a.out-sunos-big")
OUTPUT_ARCH(sparc)
SEARCH_DIR("/opt/crosstool/gcc-5.5.0-nolibc/aarch64-linux-gnu/sparc64-linux/sparc-sun-sunos4/lib");
PROVIDE (__stack = 0);
SECTIONS
{
  . = 0x2020;
  .text :
  {
    CREATE_OBJECT_SYMBOLS
    *(.text)
    /* 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)
   . = ALIGN(8);
   _end = . ;
   __end = . ;
  }
}
