powerpc: Set entry point and text address in linker script
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / kernel / vmlinux.lds.S
index d4dfcfbce27258fe0bff7683d60f20441a7d8bf2..9ceaa7a7bd00a62c818b8201baf29ec8e485bd12 100644 (file)
@@ -1,11 +1,9 @@
 #include <linux/config.h>
-#ifdef CONFIG_PPC64
 #include <asm/page.h>
-#else
-#define PAGE_SIZE      4096
-#endif
 #include <asm-generic/vmlinux.lds.h>
 
+ENTRY(_stext)
+
 #ifdef CONFIG_PPC64
 OUTPUT_ARCH(powerpc:common64)
 jiffies = jiffies_64;
@@ -21,6 +19,7 @@ SECTIONS
     *(.exit.data)
   }
 
+  . = KERNELBASE;
 
   /* Read-only sections, merged into text segment: */
 #ifdef CONFIG_PPC32