Messages in this thread | | | Date | Fri, 2 Jul 2004 05:07:52 +0100 | From | Jamie Lokier <> | Subject | Re: [parisc-linux] Comparing PROT_EXEC-only pages on different CPUs |
| |
John David Anglin wrote: > > Richard raises an interesting point: exec-only pages are useless if > > the code needs to read jump tables and constant pools. It seems very > > likely Alpha and IA64 have these. > > HPPA GCC code also needs to be able to read jump tables in .text.
As Richard Henderson points out, the toolchain should be requesting PROT_READ|PROT_EXEC if it generates code which needs data read access. ELF is particularly good for tracking generating those flags, so do HPPA code segments have the read flag set at the moment? I.e. if it does, then it would be fine to change the kernel to honour PROT_EXEC-only.
(There's also the question of whether that code needs data read access: do jump table instructions do data reads or do they count as code reads? I don't know HPPA well enough to know).
-- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |