• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* Script for ld -r: link without relocation */
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)
9SECTIONS
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  }
33  .bss :
34  {
35   ;
36   *(.bss)
37   *(COMMON)
38   ;
39   ;
40  }
41}
42