Title: [6607] trunk/arch/blackfin/kernel/vmlinux.lds.S: delay exit text/data discarding from link time to run time as there are sections which may introduce cross-references and cause a link failure (this is how other architectures do it as well)
Revision
6607
Author
vapier
Date
2009-06-08 09:39:36 -0500 (Mon, 08 Jun 2009)

Log Message

delay exit text/data discarding from link time to run time as there are sections which may introduce cross-references and cause a link failure (this is how other architectures do it as well)

Modified Paths

Diff

Modified: trunk/arch/blackfin/kernel/vmlinux.lds.S (6606 => 6607)


--- trunk/arch/blackfin/kernel/vmlinux.lds.S	2009-06-08 08:56:28 UTC (rev 6606)
+++ trunk/arch/blackfin/kernel/vmlinux.lds.S	2009-06-08 14:39:36 UTC (rev 6607)
@@ -166,6 +166,20 @@
 	}
 	PERCPU(4)
 	SECURITY_INIT
+
+	/* we have to discard exit text and such at runtime, not link time, to
+	 * handle embedded cross-section references (alt instructions, bug
+	 * table, eh_frame, etc...)
+	 */
+	.exit.text :
+	{
+		EXIT_TEXT
+	}
+	.exit.data :
+	{
+		EXIT_DATA
+	}
+
 	.init.ramfs :
 	{
 		. = ALIGN(4);
@@ -264,8 +278,6 @@
 
 	/DISCARD/ :
 	{
-		EXIT_TEXT
-		EXIT_DATA
 		*(.exitcall.exit)
 	}
 }
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to