source: trunk/libs/newlib/src/libgloss/rs6000/mbx.ld @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 4.0 KB
Line 
1OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
2              "elf32-powerpc")
3OUTPUT_ARCH(powerpc)
4ENTRY(_start)
5/* Do we need any of these for elf?
6   __DYNAMIC = 0;    */
7
8PROVIDE (__stack = 0x0);
9
10SECTIONS
11{
12  /* Read-only sections, merged into text segment: */
13  . = 0x2000 + SIZEOF_HEADERS;
14  .interp   : { *(.interp) }
15  .hash           : { *(.hash)          }
16  .dynsym         : { *(.dynsym)                }
17  .dynstr         : { *(.dynstr)                }
18  .rela.text     :
19    { *(.rela.text) *(.rela.gnu.linkonce.t*) }
20  .rela.data     :
21    { *(.rela.data) *(.rela.gnu.linkonce.d*) }
22  .rela.rodata   :
23    { *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
24  .rela.got       : { *(.rela.got)      }
25  .rela.got1      : { *(.rela.got1)     }
26  .rela.got2      : { *(.rela.got2)     }
27  .rela.ctors     : { *(.rela.ctors)    }
28  .rela.dtors     : { *(.rela.dtors)    }
29  .rela.init      : { *(.rela.init)     }
30  .rela.fini      : { *(.rela.fini)     }
31  .rela.bss       : { *(.rela.bss)      }
32  .rela.plt       : { *(.rela.plt)      }
33  .rela.sdata     : { *(.rela.sdata2)   }
34  .rela.sbss      : { *(.rela.sbss2)    }
35  .rela.sdata2    : { *(.rela.sdata2)   }
36  .rela.sbss2     : { *(.rela.sbss2)    }
37  .plt   : { *(.plt) }
38  .text      :
39  {
40    *(.text)
41    /* .gnu.warning sections are handled specially by elf32.em.  */
42    *(.gnu.warning)
43    *(.gnu.linkonce.t*)
44  } =0
45  .init           : { *(.init)          } =0
46  .fini           : { *(.fini)          } =0
47  .rodata         : { *(.rodata) *(.gnu.linkonce.r*) }
48  .rodata1        : { *(.rodata1) }
49  _etext = .;
50  PROVIDE (etext = .);
51  .sdata2   : { *(.sdata2) }
52  .sbss2   : { *(.sbss2) }
53  . =  ALIGN(8);
54  .data    :
55  {
56    *(.data)
57    *(.gnu.linkonce.d*)
58    CONSTRUCTORS
59  }
60  .data1   : { *(.data1) }
61  .got1           : { *(.got1) }
62  .dynamic        : { *(.dynamic) }
63  /* Put .ctors and .dtors next to the .got2 section, so that the pointers
64     get relocated with -mrelocatable. Also put in the .fixup pointers.
65     The current compiler no longer needs this, but keep it around for 2.7.2  */
66                PROVIDE (_GOT2_START_ = .);
67  .got2           :  { *(.got2) }
68                PROVIDE (__CTOR_LIST__ = .);
69  .ctors          : { *(.ctors) }
70                PROVIDE (__CTOR_END__ = .);
71                PROVIDE (__DTOR_LIST__ = .);
72  .dtors          : { *(.dtors) }
73                PROVIDE (__DTOR_END__ = .);
74                PROVIDE (_FIXUP_START_ = .);
75  .fixup          : { *(.fixup) }
76                PROVIDE (_FIXUP_END_ = .);
77                PROVIDE (_GOT2_END_ = .);
78                PROVIDE (_GOT_START_ = .);
79  .got            : { *(.got) }
80  .got.plt        : { *(.got.plt) }
81                PROVIDE (_GOT_END_ = .);
82  /* We want the small data sections together, so single-instruction offsets
83     can access them all, and initialized data all before uninitialized, so
84     we can shorten the on-disk segment size.  */
85  .sdata          : { *(.sdata) }
86  _edata  =  .;
87  PROVIDE (edata = .);
88  .sbss      :
89  {
90    PROVIDE (__sbss_start = .);
91    *(.sbss)
92    *(.scommon)
93    PROVIDE (__sbss_end = .);
94  }
95  .bss       :
96  {
97   PROVIDE (__bss_start = .);
98   *(.dynbss)
99   *(.bss)
100   *(COMMON)
101  }
102  _end = . ;
103  PROVIDE (end = .);
104  /* These are needed for ELF backends which have not yet been
105     converted to the new style linker.  */
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  .debug_ranges   0 : { *(.debug_ranges) }
129  /* SGI/MIPS DWARF 2 extensions */
130  .debug_weaknames 0 : { *(.debug_weaknames) }
131  .debug_funcnames 0 : { *(.debug_funcnames) }
132  .debug_typenames 0 : { *(.debug_typenames) }
133  .debug_varnames  0 : { *(.debug_varnames) }
134  /* These must appear regardless of  .  */
135}
Note: See TracBrowser for help on using the repository browser.