Home | History | Annotate | Download | only in ldscripts
      1 /* Script for -N: mix text and data on same page; don't align data */
      2 OUTPUT_FORMAT("a.out-i386-linux", "a.out-i386-linux",
      3 	      "a.out-i386-linux")
      4 OUTPUT_ARCH(i386)
      5 PROVIDE (__stack = 0);
      6 SECTIONS
      7 {
      8   . = 0;
      9   .text :
     10   {
     11     CREATE_OBJECT_SYMBOLS
     12     *(.text)
     13     /* The next six sections are for SunOS dynamic linking.  The order
     14        is important.  */
     15     *(.dynrel)
     16     *(.hash)
     17     *(.dynsym)
     18     *(.dynstr)
     19     *(.rules)
     20     *(.need)
     21     _etext = .;
     22     __etext = .;
     23   }
     24   . = .;
     25   .data :
     26   {
     27     /* The first three sections are for SunOS dynamic linking.  */
     28     *(.dynamic)
     29     *(.got)
     30     *(.plt)
     31     *(.data)
     32     *(.linux-dynamic) /* For Linux dynamic linking.  */
     33     CONSTRUCTORS
     34     _edata  =  .;
     35     __edata  =  .;
     36   }
     37   .bss :
     38   {
     39     __bss_start = .;
     40    *(.bss)
     41    *(COMMON)
     42    . = ALIGN(4);
     43    _end = . ;
     44    __end = . ;
     45   }
     46 }
     47