diff options
| -rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 9ceaa7a7bd00..7fa7b15fd8e6 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | #include <linux/config.h> | 1 | #include <linux/config.h> |
| 2 | #ifdef CONFIG_PPC64 | ||
| 2 | #include <asm/page.h> | 3 | #include <asm/page.h> |
| 4 | #else | ||
| 5 | #define PAGE_SIZE 4096 | ||
| 6 | #define KERNELBASE CONFIG_KERNEL_START | ||
| 7 | #endif | ||
| 3 | #include <asm-generic/vmlinux.lds.h> | 8 | #include <asm-generic/vmlinux.lds.h> |
| 4 | 9 | ||
| 5 | ENTRY(_stext) | 10 | ENTRY(_stext) |
| @@ -22,31 +27,6 @@ SECTIONS | |||
| 22 | . = KERNELBASE; | 27 | . = KERNELBASE; |
| 23 | 28 | ||
| 24 | /* Read-only sections, merged into text segment: */ | 29 | /* Read-only sections, merged into text segment: */ |
| 25 | #ifdef CONFIG_PPC32 | ||
| 26 | . = + SIZEOF_HEADERS; | ||
| 27 | .interp : { *(.interp) } | ||
| 28 | .hash : { *(.hash) } | ||
| 29 | .dynsym : { *(.dynsym) } | ||
| 30 | .dynstr : { *(.dynstr) } | ||
| 31 | .rel.text : { *(.rel.text) } | ||
| 32 | .rela.text : { *(.rela.text) } | ||
| 33 | .rel.data : { *(.rel.data) } | ||
| 34 | .rela.data : { *(.rela.data) } | ||
| 35 | .rel.rodata : { *(.rel.rodata) } | ||
| 36 | .rela.rodata : { *(.rela.rodata) } | ||
| 37 | .rel.got : { *(.rel.got) } | ||
| 38 | .rela.got : { *(.rela.got) } | ||
| 39 | .rel.ctors : { *(.rel.ctors) } | ||
| 40 | .rela.ctors : { *(.rela.ctors) } | ||
| 41 | .rel.dtors : { *(.rel.dtors) } | ||
| 42 | .rela.dtors : { *(.rela.dtors) } | ||
| 43 | .rel.bss : { *(.rel.bss) } | ||
| 44 | .rela.bss : { *(.rela.bss) } | ||
| 45 | .rel.plt : { *(.rel.plt) } | ||
| 46 | .rela.plt : { *(.rela.plt) } | ||
| 47 | /* .init : { *(.init) } =0*/ | ||
| 48 | .plt : { *(.plt) } | ||
| 49 | #endif | ||
| 50 | .text : { | 30 | .text : { |
| 51 | *(.text .text.*) | 31 | *(.text .text.*) |
| 52 | SCHED_TEXT | 32 | SCHED_TEXT |
