]> code.ossystems Code Review - openembedded-core.git/commit
ltp: set -fomit-frame-pointer explicitly for x86-64
authorMingli Yu <Mingli.Yu@windriver.com>
Fri, 15 Jun 2018 09:28:01 +0000 (17:28 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jun 2018 09:58:18 +0000 (10:58 +0100)
commit3084ff86d61b54011e0647ee17cbba521bafc9df
treee28b1d8e757e98a36ce1760290a2802e37c14df7
parent9f0570351a7b0877aa50efff5fe9a9ef368cb38f
ltp: set -fomit-frame-pointer explicitly for x86-64

Since ltp contains x86-64 assembler which uses the
frame-pointer register, it will trigger below error
when build ltp with -fno-omit-frame-pointer on
x86-64.
| cve-2015-3290.c: In function 'child_thread':
| cve-2015-3290.c:416:1: error: bp cannot be used in asm here

And there is also some comment as below in the source
file ltp/20180515-r0/git/testcases/cve/cve-2015-3290.c
* Build with -O2.  Don't use -fno-omit-frame-pointer.

So explicitly set -fomit-frame-pointer on x86-64 for
compiler to fix the above build error.

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ltp/ltp_20180515.bb