Re: VDSO on amd64

2021-11-26 Thread Ed Maste
On Thu, 25 Nov 2021 at 00:36, Kurt Jaeger wrote: > > Eleven years ago Giuseppe Cocomazzi posted this: > > http://lists.freebsd.org/pipermail/freebsd-hackers/2010-April/031553.html > > vdso and shared page patch I see the patch generated a couple of responses on the list when it was posted, includ

Re: VDSO on amd64

2021-11-25 Thread Shawn Webb
On Thu, Nov 25, 2021 at 09:53:19PM +0200, Konstantin Belousov wrote: > On Thu, Nov 25, 2021 at 09:35:53AM +, David Chisnall wrote: > > Great news! > > > > Note that your example of throwing an exception from a signal handler works > > because the signal is delivered during a system call. The

Re: VDSO on amd64

2021-11-25 Thread Konstantin Belousov
On Thu, Nov 25, 2021 at 06:34:19AM +0100, Kurt Jaeger wrote: > Hi! > > > I have mostly finished implementation of "proper" vdso for amd64 > > native binaries, both 64bit and 32bit. Vdso wraps signal trampolines > > into real dynamic shared object, which is prelinked into dynamically > > linked im

Re: VDSO on amd64

2021-11-25 Thread Konstantin Belousov
On Thu, Nov 25, 2021 at 09:35:53AM +, David Chisnall wrote: > Great news! > > Note that your example of throwing an exception from a signal handler works > because the signal is delivered during a system call. The compiler > generates correct unwind tables for calls because any call may throw

Re: VDSO on amd64

2021-11-25 Thread David Chisnall
Great news! Note that your example of throwing an exception from a signal handler works because the signal is delivered during a system call. The compiler generates correct unwind tables for calls because any call may throw. If you did something like a division by zero to get a SIGFPE or a

Re: VDSO on amd64

2021-11-24 Thread Kurt Jaeger
Hi! > I have mostly finished implementation of "proper" vdso for amd64 > native binaries, both 64bit and 32bit. Vdso wraps signal trampolines > into real dynamic shared object, which is prelinked into dynamically > linked image. Eleven years ago Giuseppe Cocomazzi posted this: http://lists.free

VDSO on amd64

2021-11-24 Thread Konstantin Belousov
I have mostly finished implementation of "proper" vdso for amd64 native binaries, both 64bit and 32bit. Vdso wraps signal trampolines into real dynamic shared object, which is prelinked into dynamically linked image. The main (and in fact, now the only) reason for wrapping trampolines into vdso i