Messages in this thread | | | Date | Wed, 12 May 2004 08:33:28 -0700 | From | Ulrich Drepper <> | Subject | Re: [Fastboot] Re: [announce] kexec for linux 2.6.6 |
| |
Eric W. Biederman wrote:
>> sym = dlsym (RTLD_DEFAULT, "the_symbol_name") > [...]
> > For the momen the only finished port is x86, so we should be able > to do that, it would make the kernel patch a little bigger though. > Last time I saw that conversation I thought you didn't like symbols in > the vdso for syscalls because it slowed things down.
I don't want to use this in glibc for every syscall. But for your random application in need of a syscall it's fine.
And there is one more thing: the above code is actually not what should be used. The symbol able entries should be position independent. So one will have to compute the final address (which will be fun for archs with function descriptors). I'll have to see how randomization is actually implemented. The __kernel_vsyscall symbol is probably not changed, so we need an out-of-band mechanisms to report the load address to the userlevel code.
-- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ - 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/
| |