• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Default linker script, for normal executables */
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 SEARCH_DIR("=/tmp/gbiv-gcc-64-99K5up/1/x86_64-linux-glibc2.17-4.8/i386-linuxaout/lib");
10 PROVIDE (__stack = 0);
11 SECTIONS
12 {
13   . = 0x1020;
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