Module Name:    src
Committed By:   mrg
Date:           Sat Nov 16 12:00:21 UTC 2013

Modified Files:
        src/sys/arch/powerpc/conf: kern.ldscript

Log Message:
make sure that .text.startup and .text.unlikely end up in the
text section.  GCC 4.8 ofppc kernels now boot, though they are
unable to load the symbol table correctly.

also tested with GCC 4.5 and ofppc (pegasosII.)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/powerpc/conf/kern.ldscript

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/conf/kern.ldscript
diff -u src/sys/arch/powerpc/conf/kern.ldscript:1.4 src/sys/arch/powerpc/conf/kern.ldscript:1.5
--- src/sys/arch/powerpc/conf/kern.ldscript:1.4	Sat Feb 12 18:23:09 2011
+++ src/sys/arch/powerpc/conf/kern.ldscript	Sat Nov 16 12:00:21 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.4 2011/02/12 18:23:09 matt Exp $ */
+/* $NetBSD: kern.ldscript,v 1.5 2013/11/16 12:00:21 mrg Exp $ */
 
 /*  ldscript for NetBSD/powerpc kernels and LKMs */
 OUTPUT_ARCH(powerpc)
@@ -15,6 +15,8 @@ SECTIONS
   {
     _ftext = . ;
     *(.text)
+    *(.text.startup)
+    *(.text.unlikely)
     __stub_start = .;
     *(.stub)
     __stub_end = .;

Reply via email to