]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sh: Terminate .eh_frame in VDSO with a 4-byte 0.
authorKaz Kojima <kkojima@rr.iij4u.or.jp>
Fri, 2 Nov 2007 03:29:37 +0000 (12:29 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 2 Nov 2007 03:29:37 +0000 (12:29 +0900)
commitf38c5a696a1e775c70d8764b1b9c1a4e267448d3
tree45d25babb1ce72b04d65b705c5d23d295b26eb7a
parent236b1957447018d53cfd24ec774995c44e18998d
sh: Terminate .eh_frame in VDSO with a 4-byte 0.

It's assumed that .eh_frame is terminated with 4-byte 0 in shared
libraries and executable.  It seems to be the case for VDSOs too.
Without this terminator, I saw failures when unwinding from VDSO,
though I don't know how other architectures handle this issue.
For the normal libs, crtendS.o gives this terminator.  We can use
such terminating objects.  Or we can add a 4-byte 0 with modifying
the linker script like as the patch below.

Signed-off-by: Kaz Kojima <kkojima@rr.iij4u.or.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/vsyscall/vsyscall.lds.S