e4ca5db3312d4852fb71281440afc25207267772
[pintos-anon] / src / lib / user / normal.lds
1 OUTPUT_FORMAT("elf32-i386")
2 OUTPUT_ARCH(i386)
3 ENTRY(_start)
4
5 SECTIONS
6 {
7   /* Read-only sections, merged into text segment: */
8   . = 0x08048000 + SIZEOF_HEADERS;
9   .text : { *(.text) } = 0x90
10   .rodata : { *(.rodata) }
11
12   /* Adjust the address for the data segment.  We want to adjust up to
13      the same address within the page on the next page up.  */
14   . = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1)); 
15   . = DATA_SEGMENT_ALIGN (0x1000, 0x1000);
16
17   .data : { *(.data) }
18   .bss : { *(.bss) }
19
20   /* Stabs debugging sections.  */
21   .stab          0 : { *(.stab) }
22   .stabstr       0 : { *(.stabstr) }
23   .stab.excl     0 : { *(.stab.excl) }
24   .stab.exclstr  0 : { *(.stab.exclstr) }
25   .stab.index    0 : { *(.stab.index) }
26   .stab.indexstr 0 : { *(.stab.indexstr) }
27   .comment       0 : { *(.comment) }
28
29   /* DWARF debug sections.
30   Symbols in the DWARF debugging sections are relative to the beginning
31   of the section so we begin them at 0.  */
32   /* DWARF 1 */
33   .debug          0 : { *(.debug) }
34   .line           0 : { *(.line) }
35   /* GNU DWARF 1 extensions */
36   .debug_srcinfo  0 : { *(.debug_srcinfo) }
37   .debug_sfnames  0 : { *(.debug_sfnames) }
38   /* DWARF 1.1 and DWARF 2 */
39   .debug_aranges  0 : { *(.debug_aranges) }
40   .debug_pubnames 0 : { *(.debug_pubnames) }
41   /* DWARF 2 */
42   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
43   .debug_abbrev   0 : { *(.debug_abbrev) }
44   .debug_line     0 : { *(.debug_line) }
45   .debug_frame    0 : { *(.debug_frame) }
46   .debug_str      0 : { *(.debug_str) }
47   .debug_loc      0 : { *(.debug_loc) }
48   .debug_macinfo  0 : { *(.debug_macinfo) }
49   /* SGI/MIPS DWARF 2 extensions */
50   .debug_weaknames 0 : { *(.debug_weaknames) }
51   .debug_funcnames 0 : { *(.debug_funcnames) }
52   .debug_typenames 0 : { *(.debug_typenames) }
53   .debug_varnames  0 : { *(.debug_varnames) }
54   /DISCARD/ : { *(.note.GNU-stack) }
55   /DISCARD/ : { *(.eh_frame) }
56 }