ia64/xen-unstable

view extras/mini-os/minios-x86_32.lds @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 2d4c4c4574f2
children 8c21c8ea5fff
line source
1 OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
2 OUTPUT_ARCH(i386)
3 ENTRY(_start)
4 SECTIONS
5 {
6 . = 0xC0000000;
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 . = ALIGN(8192); /* init_task */
25 .data.init_task : { *(.data.init_task) }
27 . = ALIGN(4096);
28 .data.page_aligned : { *(.data.idt) }
30 . = ALIGN(32);
31 .data.cacheline_aligned : { *(.data.cacheline_aligned) }
33 __bss_start = .; /* BSS */
34 .bss : {
35 *(.bss)
36 }
37 _end = . ;
39 /* Sections to be discarded */
40 /DISCARD/ : {
41 *(.text.exit)
42 *(.data.exit)
43 *(.exitcall.exit)
44 }
46 /* Stabs debugging sections. */
47 .stab 0 : { *(.stab) }
48 .stabstr 0 : { *(.stabstr) }
49 .stab.excl 0 : { *(.stab.excl) }
50 .stab.exclstr 0 : { *(.stab.exclstr) }
51 .stab.index 0 : { *(.stab.index) }
52 .stab.indexstr 0 : { *(.stab.indexstr) }
53 .comment 0 : { *(.comment) }
54 }