• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* Script for -n: mix text and data on same page */
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.  */
6OUTPUT_FORMAT("a.out-i386-linux", "a.out-i386-linux",
7	      "a.out-i386-linux")
8OUTPUT_ARCH(i386)
9SEARCH_DIR("=/tmp/gbiv-gcc-64-99K5up/1/x86_64-linux-glibc2.17-4.8/i386-linuxaout/lib");
10PROVIDE (__stack = 0);
11SECTIONS
12{
13  . = 0;
14  .text :
15  {
16    CREATE_OBJECT_SYMBOLS
17    *(.text)
18    /* The next six sections are for SunOS dynamic linking.  The order
19       is important.  */
20    *(.dynrel)
21    *(.hash)
22    *(.dynsym)
23    *(.dynstr)
24    *(.rules)
25    *(.need)
26    _etext = .;
27    __etext = .;
28  }
29  . = ALIGN(0x1000);
30  .data :
31  {
32    /* The first three sections are for SunOS dynamic linking.  */
33    *(.dynamic)
34    *(.got)
35    *(.plt)
36    *(.data)
37    *(.linux-dynamic) /* For Linux dynamic linking.  */
38    CONSTRUCTORS
39    _edata  =  .;
40    __edata  =  .;
41  }
42  .bss :
43  {
44    __bss_start = .;
45   *(.bss)
46   *(COMMON)
47   . = ALIGN(4);
48   _end = . ;
49   __end = . ;
50  }
51}
52