diff options
| -rw-r--r-- | arch/powerpc/Makefile | 5 | ||||
| -rw-r--r-- | arch/powerpc/kernel/vmlinux.lds.S | 7 |
2 files changed, 4 insertions, 8 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 2f4cce06a7e5..5bc11bd36c1f 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
| @@ -12,9 +12,6 @@ | |||
| 12 | # Rewritten by Cort Dougan and Paul Mackerras | 12 | # Rewritten by Cort Dougan and Paul Mackerras |
| 13 | # | 13 | # |
| 14 | 14 | ||
| 15 | # This must match PAGE_OFFSET in include/asm-powerpc/page.h. | ||
| 16 | KERNELLOAD := $(CONFIG_KERNEL_START) | ||
| 17 | |||
| 18 | HAS_BIARCH := $(call cc-option-yn, -m32) | 15 | HAS_BIARCH := $(call cc-option-yn, -m32) |
| 19 | 16 | ||
| 20 | ifeq ($(CONFIG_PPC64),y) | 17 | ifeq ($(CONFIG_PPC64),y) |
| @@ -59,7 +56,7 @@ override LD += -m elf$(SZ)ppc | |||
| 59 | override CC += -m$(SZ) | 56 | override CC += -m$(SZ) |
| 60 | endif | 57 | endif |
| 61 | 58 | ||
| 62 | LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic -e $(KERNELLOAD) | 59 | LDFLAGS_vmlinux := -Bstatic |
| 63 | 60 | ||
| 64 | # The -Iarch/$(ARCH)/include is temporary while we are merging | 61 | # The -Iarch/$(ARCH)/include is temporary while we are merging |
| 65 | CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include | 62 | CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include |
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index d4dfcfbce272..9ceaa7a7bd00 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S | |||
| @@ -1,11 +1,9 @@ | |||
| 1 | #include <linux/config.h> | 1 | #include <linux/config.h> |
| 2 | #ifdef CONFIG_PPC64 | ||
| 3 | #include <asm/page.h> | 2 | #include <asm/page.h> |
| 4 | #else | ||
| 5 | #define PAGE_SIZE 4096 | ||
| 6 | #endif | ||
| 7 | #include <asm-generic/vmlinux.lds.h> | 3 | #include <asm-generic/vmlinux.lds.h> |
| 8 | 4 | ||
| 5 | ENTRY(_stext) | ||
| 6 | |||
| 9 | #ifdef CONFIG_PPC64 | 7 | #ifdef CONFIG_PPC64 |
| 10 | OUTPUT_ARCH(powerpc:common64) | 8 | OUTPUT_ARCH(powerpc:common64) |
| 11 | jiffies = jiffies_64; | 9 | jiffies = jiffies_64; |
| @@ -21,6 +19,7 @@ SECTIONS | |||
| 21 | *(.exit.data) | 19 | *(.exit.data) |
| 22 | } | 20 | } |
| 23 | 21 | ||
| 22 | . = KERNELBASE; | ||
| 24 | 23 | ||
| 25 | /* Read-only sections, merged into text segment: */ | 24 | /* Read-only sections, merged into text segment: */ |
| 26 | #ifdef CONFIG_PPC32 | 25 | #ifdef CONFIG_PPC32 |
