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