scanner: avoid executable stack
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 2 Mar 2016 09:00:35 +0000 (11:00 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 2 Mar 2016 10:05:28 +0000 (12:05 +0200)
commitf8f3e54aa7bc15871ca4296cbc16ae065b07de4e
treea49f615a2f7d4ada7a8506fbf3691382099df5cb
parent4a41d26c4d0f4775f3a013a41a32ac1512a0a177
scanner: avoid executable stack

Before this patch:
$ scanelf -lpqe ./wayland-scanner
RWX --- ---  ./wayland-scanner

That indicates the stack is executable, which is a bad thing for
security. Wayland-scanner does not actually need an executable stack, it
is just an oversight from using an .S file in the sources.

Add a special incantation in dtddata.S to make it not cause the stack to
become executable.

Reported-by: Mart Raudsepp <leio@gentoo.org>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Tested-by: Mart Raudsepp <leio@gentoo.org>
src/dtddata.S