Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/conf make sure that .text.startup and .text...



details:   https://anonhg.NetBSD.org/src/rev/6f96fede8729
branches:  trunk
changeset: 791399:6f96fede8729
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 16 12:00:21 2013 +0000

description:
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.)

diffstat:

 sys/arch/powerpc/conf/kern.ldscript |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 5f6824ba7d4e -r 6f96fede8729 sys/arch/powerpc/conf/kern.ldscript
--- a/sys/arch/powerpc/conf/kern.ldscript       Sat Nov 16 10:50:43 2013 +0000
+++ b/sys/arch/powerpc/conf/kern.ldscript       Sat Nov 16 12:00:21 2013 +0000
@@ -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 @@
   {
     _ftext = . ;
     *(.text)
+    *(.text.startup)
+    *(.text.unlikely)
     __stub_start = .;
     *(.stub)
     __stub_end = .;



Home | Main Index | Thread Index | Old Index