diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/vdso32/vdso32.lds.S | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/vdso64/vdso64.lds.S | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 2 | ||||
-rw-r--r-- | arch/powerpc/lib/feature-fixups.c | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/vdso32/vdso32.lds.S b/arch/powerpc/kernel/vdso32/vdso32.lds.S index 9352ab5200e5..271793577cdc 100644 --- a/arch/powerpc/kernel/vdso32/vdso32.lds.S +++ b/arch/powerpc/kernel/vdso32/vdso32.lds.S | |||
@@ -24,7 +24,7 @@ SECTIONS | |||
24 | 24 | ||
25 | . = ALIGN(16); | 25 | . = ALIGN(16); |
26 | .text : { | 26 | .text : { |
27 | *(.text .stub .text.* .gnu.linkonce.t.*) | 27 | *(.text .stub .text.* .gnu.linkonce.t.* __ftr_alt_*) |
28 | } | 28 | } |
29 | PROVIDE(__etext = .); | 29 | PROVIDE(__etext = .); |
30 | PROVIDE(_etext = .); | 30 | PROVIDE(_etext = .); |
diff --git a/arch/powerpc/kernel/vdso64/vdso64.lds.S b/arch/powerpc/kernel/vdso64/vdso64.lds.S index 7d6585f90277..e608d1bd3bff 100644 --- a/arch/powerpc/kernel/vdso64/vdso64.lds.S +++ b/arch/powerpc/kernel/vdso64/vdso64.lds.S | |||
@@ -24,7 +24,7 @@ SECTIONS | |||
24 | 24 | ||
25 | . = ALIGN(16); | 25 | . = ALIGN(16); |
26 | .text : { | 26 | .text : { |
27 | *(.text .stub .text.* .gnu.linkonce.t.*) | 27 | *(.text .stub .text.* .gnu.linkonce.t.* __ftr_alt_*) |
28 | *(.sfpr .glink) | 28 | *(.sfpr .glink) |
29 | } :text | 29 | } :text |
30 | PROVIDE(__etext = .); | 30 | PROVIDE(__etext = .); |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 0c3000bf8d75..3c07811989fc 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
@@ -35,7 +35,7 @@ SECTIONS | |||
35 | ALIGN_FUNCTION(); | 35 | ALIGN_FUNCTION(); |
36 | *(.text.head) | 36 | *(.text.head) |
37 | _text = .; | 37 | _text = .; |
38 | *(.text .fixup .text.init.refok .exit.text.refok) | 38 | *(.text .fixup .text.init.refok .exit.text.refok __ftr_alt_*) |
39 | SCHED_TEXT | 39 | SCHED_TEXT |
40 | LOCK_TEXT | 40 | LOCK_TEXT |
41 | KPROBES_TEXT | 41 | KPROBES_TEXT |
diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c index f6fd5d2ff10d..973d547ef01d 100644 --- a/arch/powerpc/lib/feature-fixups.c +++ b/arch/powerpc/lib/feature-fixups.c | |||
@@ -22,6 +22,8 @@ struct fixup_entry { | |||
22 | unsigned long value; | 22 | unsigned long value; |
23 | long start_off; | 23 | long start_off; |
24 | long end_off; | 24 | long end_off; |
25 | long alt_start_off; | ||
26 | long alt_end_off; | ||
25 | }; | 27 | }; |
26 | 28 | ||
27 | static void patch_feature_section(unsigned long value, struct fixup_entry *fcur) | 29 | static void patch_feature_section(unsigned long value, struct fixup_entry *fcur) |