direct-io.hg

view extras/mini-os/minios-x86_32.lds @ 11356:af7c87d42bc6

[XEN][POWERPC] Fix PHDR issues with large .data.percpu sections

This patch tells the link to only create one PHDR and place all sections
in it, also removing an unrequired mapping for the .data.percpu section.

This avoids the "Not enough room for program headers (allocated 2, need 3)"

Booted on a JS20.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Aug 17 07:10:57 2006 -0400 (2006-08-17)
parents b3b5f3ff2100
children
line source
1 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
2 OUTPUT_ARCH(i386)
3 ENTRY(_start)
4 SECTIONS
5 {
6 . = 0x0;
7 _text = .; /* Text and read-only data */
8 .text : {
9 *(.text)
10 *(.gnu.warning)
11 } = 0x9090
13 _etext = .; /* End of text section */
15 .rodata : { *(.rodata) *(.rodata.*) }
17 .data : { /* Data */
18 *(.data)
19 CONSTRUCTORS
20 }
22 _edata = .; /* End of data section */
24 __bss_start = .; /* BSS */
25 .bss : {
26 *(.bss)
27 }
28 _end = . ;
30 /* Sections to be discarded */
31 /DISCARD/ : {
32 *(.text.exit)
33 *(.data.exit)
34 *(.exitcall.exit)
35 }
37 /* Stabs debugging sections. */
38 .stab 0 : { *(.stab) }
39 .stabstr 0 : { *(.stabstr) }
40 .stab.excl 0 : { *(.stab.excl) }
41 .stab.exclstr 0 : { *(.stab.exclstr) }
42 .stab.index 0 : { *(.stab.index) }
43 .stab.indexstr 0 : { *(.stab.indexstr) }
44 .comment 0 : { *(.comment) }
45 }