OSDN Git Service

latent_entropy: fix ARM build error on earlier gcc
authorKees Cook <keescook@chromium.org>
Fri, 16 Dec 2016 20:59:31 +0000 (12:59 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 3 Jan 2017 20:08:59 +0000 (12:08 -0800)
commit9988f4d577f42f43b7612d755477585f35424af7
tree5467f7efe4219aef56b66ab3b086c6c818d4e59a
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
latent_entropy: fix ARM build error on earlier gcc

This fixes build errors seen on gcc-4.9.3 or gcc-5.3.1 for an ARM:

arm-soc/init/initramfs.c: In function 'error':
arm-soc/init/initramfs.c:50:1: error: unrecognizable insn:
 }
 ^
(insn 26 25 27 5 (set (reg:SI 111 [ local_entropy.243 ])
        (rotatert:SI (reg:SI 116 [ local_entropy.243 ])
            (const_int -30 [0xffffffffffffffe2]))) -1
     (nil))

Patch from PaX Team <pageexec@freemail.hu>

Reported-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: Brad Spengler <spender@grsecurity.net>
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/latent_entropy_plugin.c