Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | #include <linux/config.h> #include <asm/page.h> #include <asm/system.h> OUTPUT_FORMAT("elf64-ia64-little") OUTPUT_ARCH(ia64) ENTRY(phys_start) SECTIONS { /* Sections to be discarded */ /DISCARD/ : { *(.text.exit) *(.data.exit) *(.exitcall.exit) } v = PAGE_OFFSET; /* this symbol is here to make debugging easier... */ phys_start = _start - PAGE_OFFSET; . = KERNEL_START; _text = .; _stext = .; .text : AT(ADDR(.text) - PAGE_OFFSET) { *(.text.ivt) /* these are not really text pages, but the zero page needs to be in a fixed location: */ *(__special_page_section) __start_gate_section = .; *(.text.gate) __stop_gate_section = .; *(.text) } .text2 : AT(ADDR(.text2) - PAGE_OFFSET) { *(.text2) } #ifdef CONFIG_SMP .text.lock : AT(ADDR(.text.lock) - PAGE_OFFSET) { *(.text.lock) } #endif _etext = .; /* Read-only data */ __gp = ALIGN(16) + 0x200000; /* gp must be 16-byte aligned for exc. table */ /* Global data */ _data = .; /* Exception table */ . = ALIGN(16); __start___ex_table = .; __ex_table : AT(ADDR(__ex_table) - PAGE_OFFSET) { *(__ex_table) } __stop___ex_table = .; #if defined(CONFIG_IA64_GENERIC) /* Machine Vector */ . = ALIGN(16); machvec_start = .; .machvec : AT(ADDR(.machvec) - PAGE_OFFSET) { *(.machvec) } machvec_end = .; #endif __start___ksymtab = .; /* Kernel symbol table */ __ksymtab : AT(ADDR(__ksymtab) - PAGE_OFFSET) { *(__ksymtab) } __stop___ksymtab = .; __start___kallsyms = .; /* All kernel symbols for debugging */ __kallsyms : AT(ADDR(__kallsyms) - PAGE_OFFSET) { *(__kallsyms) } __stop___kallsyms = .; /* Unwind info & table: */ .IA_64.unwind_info : AT(ADDR(.IA_64.unwind_info) - PAGE_OFFSET) { *(.IA_64.unwind_info*) } . = ALIGN(8); ia64_unw_start = .; .IA_64.unwind : AT(ADDR(.IA_64.unwind) - PAGE_OFFSET) { *(.IA_64.unwind*) } ia64_unw_end = .; .rodata : AT(ADDR(.rodata) - PAGE_OFFSET) { *(.rodata) } .kstrtab : AT(ADDR(.kstrtab) - PAGE_OFFSET) { *(.kstrtab) } .opd : AT(ADDR(.opd) - PAGE_OFFSET) { *(.opd) } /* Initialization code and data: */ . = ALIGN(PAGE_SIZE); __init_begin = .; .text.init : AT(ADDR(.text.init) - PAGE_OFFSET) { *(.text.init) } .data.init : AT(ADDR(.data.init) - PAGE_OFFSET) { *(.data.init) } . = ALIGN(16); __setup_start = .; .setup.init : AT(ADDR(.setup.init) - PAGE_OFFSET) { *(.setup.init) } __setup_end = .; __initcall_start = .; .initcall.init : AT(ADDR(.initcall.init) - PAGE_OFFSET) { *(.initcall.init) } __initcall_end = .; . = ALIGN(PAGE_SIZE); __init_end = .; /* The initial task and kernel stack */ init_task : AT(ADDR(init_task) - PAGE_OFFSET) { *(init_task) } .data.page_aligned : AT(ADDR(.data.page_aligned) - PAGE_OFFSET) { *(.data.idt) } . = ALIGN(64); .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - PAGE_OFFSET) { *(.data.cacheline_aligned) } /* Kernel symbol names for modules: */ .kstrtab : AT(ADDR(.kstrtab) - PAGE_OFFSET) { *(.kstrtab) } .data : AT(ADDR(.data) - PAGE_OFFSET) { *(.data) *(.gnu.linkonce.d*) CONSTRUCTORS } .got : AT(ADDR(.got) - PAGE_OFFSET) { *(.got.plt) *(.got) } /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so we can shorten the on-disk segment size. */ .sdata : AT(ADDR(.sdata) - PAGE_OFFSET) { *(.sdata) } _edata = .; _bss = .; .sbss : AT(ADDR(.sbss) - PAGE_OFFSET) { *(.sbss) *(.scommon) } .bss : AT(ADDR(.bss) - PAGE_OFFSET) { *(.bss) *(COMMON) } . = ALIGN(64 / 8); _end = .; /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } .stab.excl 0 : { *(.stab.excl) } .stab.exclstr 0 : { *(.stab.exclstr) } .stab.index 0 : { *(.stab.index) } .stab.indexstr 0 : { *(.stab.indexstr) } /* DWARF debug sections. Symbols in the DWARF debugging sections are relative to the beginning of the section so we begin them at 0. */ /* DWARF 1 */ .debug 0 : { *(.debug) } .line 0 : { *(.line) } /* GNU DWARF 1 extensions */ .debug_srcinfo 0 : { *(.debug_srcinfo) } .debug_sfnames 0 : { *(.debug_sfnames) } /* DWARF 1.1 and DWARF 2 */ .debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug_pubnames) } /* DWARF 2 */ .debug_info 0 : { *(.debug_info) } .debug_abbrev 0 : { *(.debug_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } /* These must appear regardless of . */ /* Discard them for now since Intel SoftSDV cannot handle them. .comment 0 : { *(.comment) } .note 0 : { *(.note) } */ /DISCARD/ : { *(.comment) } /DISCARD/ : { *(.note) } } |