]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - libexec/rtld-elf/amd64/elf_rtld.x
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / libexec / rtld-elf / amd64 / elf_rtld.x
1 OUTPUT_FORMAT("elf32-i386", "elf32-i386",
2               "elf32-i386")
3 OUTPUT_ARCH(i386)
4 ENTRY(_start)
5 SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/usr/src/tmp/usr/i386-unknown-freebsdelf/lib);
6 /* Do we need any of these for elf?
7    __DYNAMIC = 0;    */
8 SECTIONS
9 {
10   /* Read-only sections, merged into text segment: */
11   . = 0x08000000 + SIZEOF_HEADERS;
12   .interp     : { *(.interp)    }
13   .hash          : { *(.hash)           }
14   .dynsym        : { *(.dynsym)         }
15   .dynstr        : { *(.dynstr)         }
16   .gnu.version   : { *(.gnu.version)    }
17   .gnu.version_d   : { *(.gnu.version_d)        }
18   .gnu.version_r   : { *(.gnu.version_r)        }
19   .rel.text      :
20     { *(.rel.text) *(.rel.gnu.linkonce.t*) }
21   .rela.text     :
22     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
23   .rel.data      :
24     { *(.rel.data) *(.rel.gnu.linkonce.d*) }
25   .rela.data     :
26     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
27   .rel.rodata    :
28     { *(.rel.rodata) *(.rel.gnu.linkonce.r*) }
29   .rela.rodata   :
30     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
31   .rel.got       : { *(.rel.got)                }
32   .rela.got      : { *(.rela.got)               }
33   .rel.ctors     : { *(.rel.ctors)      }
34   .rela.ctors    : { *(.rela.ctors)     }
35   .rel.dtors     : { *(.rel.dtors)      }
36   .rela.dtors    : { *(.rela.dtors)     }
37   .rel.init      : { *(.rel.init)       }
38   .rela.init     : { *(.rela.init)      }
39   .rel.fini      : { *(.rel.fini)       }
40   .rela.fini     : { *(.rela.fini)      }
41   .rel.bss       : { *(.rel.bss)                }
42   .rela.bss      : { *(.rela.bss)               }
43   .rel.plt       : { *(.rel.plt)                }
44   .rela.plt      : { *(.rela.plt)               }
45   .init          : { *(.init)   } =0x9090
46   .plt      : { *(.plt) }
47   .text      :
48   {
49     *(.text)
50     *(.stub)
51     /* .gnu.warning sections are handled specially by elf32.em.  */
52     *(.gnu.warning)
53     *(.gnu.linkonce.t*)
54   } =0x9090
55   _etext = .;
56   PROVIDE (etext = .);
57   .fini      : { *(.fini)    } =0x9090
58   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
59   .rodata1   : { *(.rodata1) }
60   /* Adjust the address for the data segment.  We want to adjust up to
61      the same address within the page on the next page up.  */
62   . = ALIGN(0x1000) + (. & (0x1000 - 1));
63   .data    :
64   {
65     *(.data)
66     *(.gnu.linkonce.d*)
67     CONSTRUCTORS
68   }
69   .data1   : { *(.data1) }
70   .ctors         :
71   {
72     *(.ctors)
73   }
74   .dtors         :
75   {
76     *(.dtors)
77   }
78   .got           : { *(.got.plt) *(.got) }
79   .dynamic       : { *(.dynamic) }
80   /* We want the small data sections together, so single-instruction offsets
81      can access them all, and initialized data all before uninitialized, so
82      we can shorten the on-disk segment size.  */
83   .sdata     : { *(.sdata) }
84   _edata  =  .;
85   PROVIDE (edata = .);
86   __bss_start = .;
87   .sbss      : { *(.sbss) *(.scommon) }
88   .bss       :
89   {
90    *(.dynbss)
91    *(.bss)
92    *(COMMON)
93   }
94   . = ALIGN(32 / 8);
95   _end = . ;
96   PROVIDE (end = .);
97   /* Stabs debugging sections.  */
98   .stab 0 : { *(.stab) }
99   .stabstr 0 : { *(.stabstr) }
100   .stab.excl 0 : { *(.stab.excl) }
101   .stab.exclstr 0 : { *(.stab.exclstr) }
102   .stab.index 0 : { *(.stab.index) }
103   .stab.indexstr 0 : { *(.stab.indexstr) }
104   .comment 0 : { *(.comment) }
105   /* DWARF debug sections.
106      Symbols in the DWARF debugging sections are relative to the beginning
107      of the section so we begin them at 0.  */
108   /* DWARF 1 */
109   .debug          0 : { *(.debug) }
110   .line           0 : { *(.line) }
111   /* GNU DWARF 1 extensions */
112   .debug_srcinfo  0 : { *(.debug_srcinfo) }
113   .debug_sfnames  0 : { *(.debug_sfnames) }
114   /* DWARF 1.1 and DWARF 2 */
115   .debug_aranges  0 : { *(.debug_aranges) }
116   .debug_pubnames 0 : { *(.debug_pubnames) }
117   /* DWARF 2 */
118   .debug_info     0 : { *(.debug_info) }
119   .debug_abbrev   0 : { *(.debug_abbrev) }
120   .debug_line     0 : { *(.debug_line) }
121   .debug_frame    0 : { *(.debug_frame) }
122   .debug_str      0 : { *(.debug_str) }
123   .debug_loc      0 : { *(.debug_loc) }
124   .debug_macinfo  0 : { *(.debug_macinfo) }
125   /* SGI/MIPS DWARF 2 extensions */
126   .debug_weaknames 0 : { *(.debug_weaknames) }
127   .debug_funcnames 0 : { *(.debug_funcnames) }
128   .debug_typenames 0 : { *(.debug_typenames) }
129   .debug_varnames  0 : { *(.debug_varnames) }
130   /* These must appear regardless of  .  */
131 }