Home | History | Annotate | Download | only in ldscripts
      1 /* Script for ld -Ur: link w/out relocation, do create constructors */
      2 /* Copyright (C) 2014-2016 Free Software Foundation, Inc.
      3    Copying and distribution of this script, with or without modification,
      4    are permitted in any medium without royalty provided the copyright
      5    notice and this notice are preserved.  */
      6 OUTPUT_FORMAT("a.out-i386-linux", "a.out-i386-linux",
      7 	      "a.out-i386-linux")
      8 OUTPUT_ARCH(i386)
      9 SECTIONS
     10 {
     11   .text :
     12   {
     13     CREATE_OBJECT_SYMBOLS
     14     *(.text)
     15     /* The next six sections are for SunOS dynamic linking.  The order
     16        is important.  */
     17     *(.dynrel)
     18     *(.hash)
     19     *(.dynsym)
     20     *(.dynstr)
     21     *(.rules)
     22     *(.need)
     23   }
     24   .data :
     25   {
     26     /* The first three sections are for SunOS dynamic linking.  */
     27     *(.dynamic)
     28     *(.got)
     29     *(.plt)
     30     *(.data)
     31     *(.linux-dynamic) /* For Linux dynamic linking.  */
     32     CONSTRUCTORS
     33   }
     34   .bss :
     35   {
     36    ;
     37    *(.bss)
     38    *(COMMON)
     39    ;
     40    ;
     41   }
     42 }
     43