source:
trunk/packages/xen-common/xen-common/patches/linux-2.6.18/x86_64-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch
@
34
Last change on this file since 34 was 34, checked in by hartmans, 17 years ago | |
---|---|
|
|
File size: 2.1 KB |
-
arch/x86_64/kernel/vmlinux.lds.S
diff -pruN ../orig-linux-2.6.18/arch/x86_64/kernel/vmlinux.lds.S ./arch/x86_64/kernel/vmlinux.lds.S
old new OUTPUT_FORMAT("elf64-x86-64", "elf64-x86 13 13 OUTPUT_ARCH(i386:x86-64) 14 14 ENTRY(phys_startup_64) 15 15 jiffies_64 = jiffies; 16 PHDRS { 17 text PT_LOAD FLAGS(5); /* R_E */ 18 data PT_LOAD FLAGS(7); /* RWE */ 19 user PT_LOAD FLAGS(7); /* RWE */ 20 note PT_NOTE FLAGS(4); /* R__ */ 21 } 16 22 SECTIONS 17 23 { 18 24 . = __START_KERNEL; … … SECTIONS 31 37 KPROBES_TEXT 32 38 *(.fixup) 33 39 *(.gnu.warning) 34 } = 0x909040 } :text = 0x9090 35 41 /* out-of-line lock text */ 36 42 .text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET) { *(.text.lock) } 37 43 … … SECTIONS 57 63 .data : AT(ADDR(.data) - LOAD_OFFSET) { 58 64 *(.data) 59 65 CONSTRUCTORS 60 } 66 } :data 61 67 62 68 _edata = .; /* End of data section */ 63 69 64 __bss_start = .; /* BSS */65 .bss : AT(ADDR(.bss) - LOAD_OFFSET) {66 *(.bss.page_aligned)67 *(.bss)68 }69 __bss_stop = .;70 71 70 . = ALIGN(PAGE_SIZE); 72 71 . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); 73 72 .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { … … SECTIONS 89 88 #define VVIRT(x) (ADDR(x) - VVIRT_OFFSET) 90 89 91 90 . = VSYSCALL_ADDR; 92 .vsyscall_0 : AT(VSYSCALL_PHYS_ADDR) { *(.vsyscall_0) } 91 .vsyscall_0 : AT(VSYSCALL_PHYS_ADDR) { *(.vsyscall_0) } :user 93 92 __vsyscall_0 = VSYSCALL_VIRT_ADDR; 94 93 95 94 . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); … … SECTIONS 132 131 . = ALIGN(8192); /* init_task */ 133 132 .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { 134 133 *(.data.init_task) 135 } 134 } :data 136 135 137 136 . = ALIGN(4096); 138 137 .data.page_aligned : AT(ADDR(.data.page_aligned) - LOAD_OFFSET) { … … SECTIONS 222 221 . = ALIGN(4096); 223 222 __nosave_end = .; 224 223 224 __bss_start = .; /* BSS */ 225 . = ALIGN(4096); 226 .bss : AT(ADDR(.bss) - LOAD_OFFSET) { 227 *(.bss.page_aligned) 228 *(.bss) 229 } 230 __bss_stop = .; 231 225 232 _end = . ; 226 233 227 234 /* Sections to be discarded */ … … SECTIONS 235 242 STABS_DEBUG 236 243 237 244 DWARF_DEBUG 245 246 NOTES 238 247 }
Note: See TracBrowser
for help on using the repository browser.