Skip to contentSkip to conversation

linux-2.6 jejb

parisc-linux Randolph Chung 3 participants 5 messages Feb 5, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines

Modified files:
arch/parisc/kernel: vmlinux.lds.S
include/asm-parisc: uaccess.h

Log message:
Make the exception table writeable (so it can actually be sorted) and discard the interpreter section

jejb, this doesn't work for me..... in arch/parisc/mm/init.c we mark everything from _stext to data_start as read-only, so i think we need something like this:

Index: arch/parisc/kernel/vmlinux.lds.S
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/kernel/vmlinux.lds.S,v retrieving revision 1.6

parisc/kernel/vmlinux.lds.S 5 Feb 2004 06:47:22 -0000 renamed from parisc/kernel/vmlinux.lds.S 4 Feb 2004 18:24:55 -0000 1.6 +5 -4
diff -u -p -r1.6 vmlinux.lds.S
@@ -58,16 +58,17 @@ SECTIONS
 
   _etext = .;                  /* End of text section */
 
+  RODATA
+
+  /* writeable */
+  data_start = .;
+
   . = ALIGN(16);               /* Exception table */
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
   __stop___ex_table = .;
 
-  RODATA
-
-  /* writeable */
   .data : {                    /* Data */
-       data_start = .;
        *(.data)
        CONSTRUCTORS
        }

randolph

Signature · 3 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
#2 lore raw
Quoted 11 lines · Randolph Chung
Quoted 7 lines

Modified files:
arch/parisc/kernel: vmlinux.lds.S
include/asm-parisc: uaccess.h

Log message:
Make the exception table writeable (so it can actually be sorted) and discard the interpreter section

jejb, this doesn't work for me..... in arch/parisc/mm/init.c we mark everything from _stext to data_start as read-only, so i think we need something like this:

OK, silly me for thinking we'd actually use the protection designation in the ELF headers...

So with this patch it now all works?

James

#3 lore raw
In reply to a message not in the archive

Hi James,

Quoted 12 lines

-- Original Message --
To: [email protected]
Date: Wed, 4 Feb 2004 11:24:55 -0700 (MST)
From: [email protected] (James Bottomley)
Reply-To: [email protected]
Subject: [parisc-linux-cvs] linux-2.6 jejb

CVSROOT: /var/cvs
Module name: linux-2.6
Changes by: jejb 04/02/04 11:24:55

Quoted 7 lines

Modified files:
arch/parisc/kernel: vmlinux.lds.S
include/asm-parisc: uaccess.h

Log message:
Make the exception table writeable (so it can actually be sorted) and discard the interpreter section

Unfortunately it doesn't help for the pb of 2.6.[12] running 64bits on b2k
as decribe in a early mail (<http://lists.parisc-linux.org/pipermail/parisc-linux/2004-January/022238.html>)
I always have to revert the mentioned patch to make it works??

I sure it is just a work around but I haven't enough knowledge (sorry) to fix it.

I already test another patch which Randolph suggest me (<http://lists.parisc-linux.org/pipermail/parisc-linux/2004-February/022259.html>)
but it doesn't work?

Any idea?

Thanks in advance for your attention,
Joel

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr

#4 lore raw

Joel, can you try the kernel at http://www.tausq.org/joel/vmlinux ? It boots on my c3k and bame's b2k. If it works for you then pls check the config in the same directory and see if you can figure out which option is causing the crash.....

btw, I assume you are building with gcc-3.0.4?

randolph

Signature · 3 lines
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
#5 lore raw

Hi Randolph

Quoted 4 lines

Joel, can you try the kernel at http://www.tausq.org/joel/vmlinux ? It boots on my c3k and bame's b2k. If it works for you then pls check the config in the same directory and see if you can figure out which option is causing the crash.....

Thanks for your attention but it doesn't help: same behaviour (hpmc very early) :(

Quoted 1 line

btw, I assume you are building with gcc-3.0.4?

Doesn't matter which compiler I used gcc-3.0.4 or very last toolchain with last Carlos patch for gcc and glibc.

I am just curious to know the amount of memory on the Paul's b2k?

Thanks again for your attention and help,
Joel

-------------------------------------------------------------------------
Tiscali ADSL: 12 mois à 29,50 €/mois! L'Internet rapide, c'est pour tout le monde.
http://reg.tiscali.be/default.asp?lg=fr