diff options
Diffstat (limited to 'arch/s390/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/s390/kernel/vmlinux.lds.S | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index 849120e3e28a..936159199346 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S | |||
@@ -17,6 +17,12 @@ ENTRY(_start) | |||
17 | jiffies = jiffies_64; | 17 | jiffies = jiffies_64; |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | PHDRS { | ||
21 | text PT_LOAD FLAGS(5); /* R_E */ | ||
22 | data PT_LOAD FLAGS(7); /* RWE */ | ||
23 | note PT_NOTE FLAGS(0); /* ___ */ | ||
24 | } | ||
25 | |||
20 | SECTIONS | 26 | SECTIONS |
21 | { | 27 | { |
22 | . = 0x00000000; | 28 | . = 0x00000000; |
@@ -33,6 +39,9 @@ SECTIONS | |||
33 | 39 | ||
34 | _etext = .; /* End of text section */ | 40 | _etext = .; /* End of text section */ |
35 | 41 | ||
42 | NOTES :text :note | ||
43 | BUG_TABLE :text | ||
44 | |||
36 | RODATA | 45 | RODATA |
37 | 46 | ||
38 | #ifdef CONFIG_SHARED_KERNEL | 47 | #ifdef CONFIG_SHARED_KERNEL |
@@ -49,9 +58,6 @@ SECTIONS | |||
49 | __stop___ex_table = .; | 58 | __stop___ex_table = .; |
50 | } | 59 | } |
51 | 60 | ||
52 | NOTES | ||
53 | BUG_TABLE | ||
54 | |||
55 | .data : { /* Data */ | 61 | .data : { /* Data */ |
56 | DATA_DATA | 62 | DATA_DATA |
57 | CONSTRUCTORS | 63 | CONSTRUCTORS |