]> code.ossystems Code Review - openembedded-core.git/commit
pulseaudio: fix for ARM thumb + frame pointers compilation error
authorCatalin Enache <catalin.enache@windriver.com>
Thu, 26 Mar 2020 15:26:29 +0000 (17:26 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Mar 2020 19:03:30 +0000 (20:03 +0100)
commitb199a9dbc3440d7c4fad8d8baeea931a6b7381c1
treee7ea14ecbc7a6e0d24b64c841f1f862d5807f9ac
parent732a9c83e946580607af3478cdc765d6541e3f64
pulseaudio: fix for ARM thumb + frame pointers compilation error

When compiling for Thumb or Thumb2, frame pointers _must_ be disabled
since the Thumb frame pointer in r7 clashes with pulseaudio's use of inline
asm to make syscalls (where r7 is used for the syscall NR).

In most cases, frame pointers will be disabled automatically due to
the optimisation level, but appending an explicit -fomit-frame-pointer
to CFLAGS handles cases where optimisation is set to -O0 or frame
pointers have been enabled by -fno-omit-frame-pointer earlier in
CFLAGS, etc.

References:
https://www.openwall.com/lists/musl/2017/10/09/2

Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Stefan Ghinea <stefan.ghinea@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/pulseaudio/pulseaudio.inc