Эх сурвалжийг харах

parisc: Fix linker script breakage.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Helge Deller 15 жил өмнө
parent
commit
8cf06fc9bd

+ 10 - 0
arch/parisc/kernel/vmlinux.lds.S

@@ -28,6 +28,7 @@
 #include <asm/cache.h>
 #include <asm/cache.h>
 #include <asm/page.h>
 #include <asm/page.h>
 #include <asm/asm-offsets.h>
 #include <asm/asm-offsets.h>
+#include <asm/thread_info.h>
 	
 	
 /* ld script to make hppa Linux kernel */
 /* ld script to make hppa Linux kernel */
 #ifndef CONFIG_64BIT
 #ifndef CONFIG_64BIT
@@ -134,6 +135,15 @@ SECTIONS
 	__init_begin = .;
 	__init_begin = .;
 	INIT_TEXT_SECTION(16384)
 	INIT_TEXT_SECTION(16384)
 	INIT_DATA_SECTION(16)
 	INIT_DATA_SECTION(16)
+	/* we have to discard exit text and such at runtime, not link time */
+	.exit.text :
+	{
+		EXIT_TEXT
+	}
+	.exit.data :
+	{
+		EXIT_DATA
+	}
 
 
 	PERCPU(PAGE_SIZE)
 	PERCPU(PAGE_SIZE)
 	. = ALIGN(PAGE_SIZE);
 	. = ALIGN(PAGE_SIZE);