Subject: storing data in a code segment - ok?
To: None <port-i386@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: port-i386
Date: 10/18/1998 03:26:38
Poking Oracle some more, I got to the following point:

...
0x8121d3c <sntpcall+1496>:      jmp    *0x8121d44(,%ecx,4)
0x8121d43 <sntpcall+1503>:      nop    
0x8121d44 <sntpcall+1504>:      0x08121dc0 0x08121de8 0x08121de8 0x08121de8
0x8121d54 <sntpcall+1520>:      0x08121de8 0x08121de8 0x08121de8 0x08121de8
...

May there be a problem with keeping this jump-table in the text-segment?
Is the text-segment on i386 i(in Linux emulation?) mapped -execute-only
and the reading of the data causes these faults?


 - Hubert

-- 
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>