![]() | |||||||||||||
Messages in this thread |
Terje Eggestad wrote:
> what about:
>
> int (*_vsyscall) (int, ...);
> _vsyscall = mmap(NULL, getpagesize(), PROT_READ|PROT_EXEC,
> MAP_VSYSCALL, , );
>
> or if you're afraid of running out of MAP_* flags:
>
> fd = open("/dev/vsyscall", );
> _vsyscall = mmap(NULL, getpagesize(), PROT_READ|PROT_EXEC, MAP_SHARED,
> fd, 0);
>
> Then you can leisurely map it in just after the programs text segment.
>
Very ugly -- then the application has to do indirect calls.
-hpa
-
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/
| ||||||||||||
| Last update: 2005-03-22 13:31 [from the cache] ©2003-2008 | |||||||||||||