lcboot.ldscript revision 1.1 1 OUTPUT_FORMAT("elf32-littlemips")
2 OUTPUT_ARCH(mips)
3 ENTRY(start)
4 SECTIONS
5 {
6 /* Read-only sections, merged into text segment. Assumes the
7 kernel Makefile sets the start address via -Ttext. */
8 . = 0x80000000;
9 .text :
10 {
11 _ftext = . ;
12 *(.text)
13 *(.gnu.warning)
14 } =0
15 _etext = .;
16 PROVIDE (etext = .);
17 .rodata : { *(.rodata) }
18 .data :
19 {
20 _fdata = . ;
21 *(.data)
22 CONSTRUCTORS
23 }
24 _gp = ALIGN(16);
25 .lit8 : { *(.lit8) }
26 .lit4 : { *(.lit4) }
27 .sdata : { *(.sdata) }
28 _edata = .;
29 PROVIDE (edata = .);
30 __bss_start = .;
31 _fbss = .;
32 .sbss : { *(.sbss) *(.scommon) }
33 .bss :
34 {
35 *(.bss)
36 *(COMMON)
37 }
38 _end = . ;
39 PROVIDE (end = .);
40 /* These are needed for ELF backends which have not yet been
41 converted to the new style linker. */
42 .stab 0 : { *(.stab) }
43 .stabstr 0 : { *(.stabstr) }
44 /* These must appear regardless of . */
45 .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
46 .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
47 }
48