diff options
Diffstat (limited to 'arch/x86/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index d113642c1345..1a1b303a4272 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S | |||
@@ -40,6 +40,19 @@ ENTRY(phys_startup_64) | |||
40 | jiffies_64 = jiffies; | 40 | jiffies_64 = jiffies; |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | PHDRS { | ||
44 | text PT_LOAD FLAGS(5); /* R_E */ | ||
45 | data PT_LOAD FLAGS(7); /* RWE */ | ||
46 | #ifdef CONFIG_X86_64 | ||
47 | user PT_LOAD FLAGS(7); /* RWE */ | ||
48 | data.init PT_LOAD FLAGS(7); /* RWE */ | ||
49 | #ifdef CONFIG_SMP | ||
50 | percpu PT_LOAD FLAGS(7); /* RWE */ | ||
51 | #endif | ||
52 | data.init2 PT_LOAD FLAGS(7); /* RWE */ | ||
53 | #endif | ||
54 | note PT_NOTE FLAGS(0); /* ___ */ | ||
55 | } | ||
43 | 56 | ||
44 | #ifdef CONFIG_X86_32 | 57 | #ifdef CONFIG_X86_32 |
45 | # include "vmlinux_32.lds.S" | 58 | # include "vmlinux_32.lds.S" |