]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/boot/arm/uboot/ldscript.arm
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / boot / arm / uboot / ldscript.arm
1 /* $FreeBSD$ */
2
3 OUTPUT_ARCH(arm)
4 ENTRY(_start)
5 SECTIONS
6 {
7   /* Read-only sections, merged into text segment: */
8   . = 0x1000000 + SIZEOF_HEADERS;
9   .interp     : { *(.interp)    }
10   .hash          : { *(.hash)           }
11   .dynsym        : { *(.dynsym)         }
12   .dynstr        : { *(.dynstr)         }
13   .gnu.version   : { *(.gnu.version)    }
14   .gnu.version_d   : { *(.gnu.version_d)        }
15   .gnu.version_r   : { *(.gnu.version_r)        }
16   .rela.text     :
17     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
18   .rela.data     :
19     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
20   .rela.rodata   :
21     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
22   .rela.got      : { *(.rela.got)               }
23   .rela.got1     : { *(.rela.got1)              }
24   .rela.got2     : { *(.rela.got2)              }
25   .rela.ctors    : { *(.rela.ctors)     }
26   .rela.dtors    : { *(.rela.dtors)     }
27   .rela.init     : { *(.rela.init)      }
28   .rela.fini     : { *(.rela.fini)      }
29   .rela.bss      : { *(.rela.bss)               }
30   .rela.plt      : { *(.rela.plt)               }
31   .rela.sdata    : { *(.rela.sdata)             }
32   .rela.sbss     : { *(.rela.sbss)              }
33   .rela.sdata2   : { *(.rela.sdata2)            }
34   .rela.sbss2    : { *(.rela.sbss2)             }
35   .text      :
36   {
37     *(.text)
38     /* .gnu.warning sections are handled specially by elf32.em.  */
39     *(.gnu.warning)
40     *(.gnu.linkonce.t*)
41   } =0
42   _etext = .;
43   PROVIDE (etext = .);
44   .init      : { *(.init)    } =0
45   .fini      : { *(.fini)    } =0
46   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
47   .rodata1   : { *(.rodata1) }
48   .sdata2    : { *(.sdata2)  }
49   .sbss2     : { *(.sbss2)   }
50   /* Adjust the address for the data segment to the next page up. */
51   . = ((. + 0x1000) & ~(0x1000 - 1));
52   .data    :
53   {
54     *(.data)
55     *(.gnu.linkonce.d*)
56     CONSTRUCTORS
57   }
58   .data1   : { *(.data1) }
59   .got1           : { *(.got1) }
60   .dynamic        : { *(.dynamic) }
61   /* Put .ctors and .dtors next to the .got2 section, so that the pointers
62      get relocated with -mrelocatable. Also put in the .fixup pointers.
63      The current compiler no longer needs this, but keep it around for 2.7.2  */
64                 PROVIDE (_GOT2_START_ = .);
65   .got2           :  { *(.got2) }
66                 PROVIDE (__CTOR_LIST__ = .);
67   .ctors          : { *(.ctors) }
68                 PROVIDE (__CTOR_END__ = .);
69                 PROVIDE (__DTOR_LIST__ = .);
70   .dtors          : { *(.dtors) }
71                 PROVIDE (__DTOR_END__ = .);
72                 PROVIDE (_FIXUP_START_ = .);
73   .fixup          : { *(.fixup) }
74                 PROVIDE (_FIXUP_END_ = .);
75                 PROVIDE (_GOT2_END_ = .);
76                 PROVIDE (_GOT_START_ = .);
77   .got            : { *(.got) }
78   .got.plt        : { *(.got.plt) }
79                 PROVIDE (_GOT_END_ = .);
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   .sbss      :
87   {
88     PROVIDE (__sbss_start = .);
89     *(.sbss)
90     *(.scommon)
91     *(.dynsbss)
92     PROVIDE (__sbss_end = .);
93   }
94   .plt   : { *(.plt) }
95   .bss       :
96   {
97    PROVIDE (__bss_start = .);
98    *(.dynbss)
99    *(.bss)
100    *(COMMON)
101   }
102   _end = . ;
103   PROVIDE (end = .);
104   /* Stabs debugging sections.  */
105   .stab 0 : { *(.stab) }
106   .stabstr 0 : { *(.stabstr) }
107   /* DWARF debug sections.
108      Symbols in the DWARF debugging sections are relative to the beginning
109      of the section so we begin them at 0.  */
110   /* DWARF 1 */
111   .debug          0 : { *(.debug) }
112   .line           0 : { *(.line) }
113   /* GNU DWARF 1 extensions */
114   .debug_srcinfo  0 : { *(.debug_srcinfo) }
115   .debug_sfnames  0 : { *(.debug_sfnames) }
116   /* DWARF 1.1 and DWARF 2 */
117   .debug_aranges  0 : { *(.debug_aranges) }
118   .debug_pubnames 0 : { *(.debug_pubnames) }
119   /* DWARF 2 */
120   .debug_info     0 : { *(.debug_info) }
121   .debug_abbrev   0 : { *(.debug_abbrev) }
122   .debug_line     0 : { *(.debug_line) }
123   .debug_frame    0 : { *(.debug_frame) }
124   .debug_str      0 : { *(.debug_str) }
125   .debug_loc      0 : { *(.debug_loc) }
126   .debug_macinfo  0 : { *(.debug_macinfo) }
127   /* SGI/MIPS DWARF 2 extensions */
128   .debug_weaknames 0 : { *(.debug_weaknames) }
129   .debug_funcnames 0 : { *(.debug_funcnames) }
130   .debug_typenames 0 : { *(.debug_typenames) }
131   .debug_varnames  0 : { *(.debug_varnames) }
132   /* These must appear regardless of  .  */
133 }