]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/powerpc/ps3/ldscript.powerpc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / powerpc / ps3 / ldscript.powerpc
1 /* $FreeBSD$ */
2
3 OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
4 OUTPUT_ARCH(powerpc:common)
5 ENTRY(_start)
6 SEARCH_DIR(/usr/lib);
7 PROVIDE (__stack = 0);
8 SECTIONS
9 {
10   /* Read-only sections, merged into text segment: */
11   . = 0x0;
12   .text      :
13   {
14     *(.text)
15     /* .gnu.warning sections are handled specially by elf32.em.  */
16     *(.gnu.warning)
17     *(.gnu.linkonce.t*)
18   } =0
19   _etext = .;
20   .interp     : { *(.interp)    }
21   .hash          : { *(.hash)           }
22   .dynsym        : { *(.dynsym)         }
23   .dynstr        : { *(.dynstr)         }
24   .gnu.version   : { *(.gnu.version)    }
25   .gnu.version_d   : { *(.gnu.version_d)        }
26   .gnu.version_r   : { *(.gnu.version_r)        }
27   .rela.text     :
28     { *(.rela.text) *(.rela.gnu.linkonce.t*) }
29   .rela.data     :
30     { *(.rela.data) *(.rela.gnu.linkonce.d*) }
31   .rela.rodata   :
32     { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
33   .rela.got      : { *(.rela.got)               }
34   .rela.got1     : { *(.rela.got1)              }
35   .rela.got2     : { *(.rela.got2)              }
36   .rela.ctors    : { *(.rela.ctors)     }
37   .rela.dtors    : { *(.rela.dtors)     }
38   .rela.init     : { *(.rela.init)      }
39   .rela.fini     : { *(.rela.fini)      }
40   .rela.bss      : { *(.rela.bss)               }
41   .rela.plt      : { *(.rela.plt)               }
42   .rela.sbss     : { *(.rela.sbss)              }
43   .rela.sbss2    : { *(.rela.sbss2)             }
44   .text      :
45   {
46     *(.text)
47     /* .gnu.warning sections are handled specially by elf32.em.  */
48     *(.gnu.warning)
49     *(.gnu.linkonce.t*)
50   } =0
51   _etext = .;
52   PROVIDE (etext = .);
53   .init      : { *(.init)    } =0
54   .fini      : { *(.fini)    } =0
55   .rodata    : { *(.rodata) *(.gnu.linkonce.r*) }
56   .rodata1   : { *(.rodata1) }
57   .sbss2     : { *(.sbss2)   }
58   /* Adjust the address for the data segment to the next page up. */
59   . = ((. + 0x1000) & ~(0x1000 - 1));
60   .data    :
61   {
62     *(.data)
63     *(.gnu.linkonce.d*)
64     CONSTRUCTORS
65   }
66   .data1   : { *(.data1) }
67   .got1           : { *(.got1) }
68   .dynamic        : { *(.dynamic) }
69   /* Put .ctors and .dtors next to the .got2 section, so that the pointers
70      get relocated with -mrelocatable. Also put in the .fixup pointers.
71      The current compiler no longer needs this, but keep it around for 2.7.2  */
72                 PROVIDE (_GOT2_START_ = .);
73   .got2           :  { *(.got2) }
74                 PROVIDE (__CTOR_LIST__ = .);
75   .ctors          : { *(.ctors) }
76                 PROVIDE (__CTOR_END__ = .);
77                 PROVIDE (__DTOR_LIST__ = .);
78   .dtors          : { *(.dtors) }
79                 PROVIDE (__DTOR_END__ = .);
80                 PROVIDE (_FIXUP_START_ = .);
81   .fixup          : { *(.fixup) }
82                 PROVIDE (_FIXUP_END_ = .);
83                 PROVIDE (_GOT2_END_ = .);
84                 PROVIDE (_GOT_START_ = .);
85   .got            : { *(.got) }
86   .got.plt        : { *(.got.plt) }
87                 PROVIDE (_GOT_END_ = .);
88   _edata  =  .;
89   PROVIDE (edata = .);
90   .sbss      :
91   {
92     PROVIDE (__sbss_start = .);
93     *(.sbss)
94     *(.scommon)
95     *(.dynsbss)
96     PROVIDE (__sbss_end = .);
97   }
98   .plt   : { *(.plt) }
99   .bss       :
100   {
101    PROVIDE (__bss_start = .);
102    *(.dynbss)
103    *(.bss)
104    *(COMMON)
105   }
106   . = ALIGN(4096);
107   _end = . ;
108   PROVIDE (end = .);
109 }
110