diff options
author | Andreas Cadhalpun <[email protected]> | 2016-12-16 02:29:56 +0100 |
---|---|---|
committer | Andreas Cadhalpun <[email protected]> | 2017-01-26 02:22:09 +0100 |
commit | 884cd3caa5cc111daaa4ff2ca05c99e05a713e47 (patch) | |
tree | 32b44a906898cadc2de05038a702bfccf81fb1cd /doc/examples/resampling_audio.c | |
parent | cc662476031b168a398d48fa6c6fc4a5f08fe4fa (diff) |
swscale: save ebx register when it is not available
Configure checks if the ebx register can be used for asm and it has to
be saved if and only if this is not the case.
Without this the build fails when configuring with --toolchain=hardened
--disable-pic on i386 using gcc 4.8:
error: PIC register clobbered by '%ebx' in 'asm'
In that case gcc 4.8 reserves the ebx register for the GOT needed for
PIE, so it can't be used in asm directly.
Reviewed-by: Michael Niedermayer <[email protected]>
Signed-off-by: Andreas Cadhalpun <[email protected]>
(cherry picked from commit 319438e2f206036ee0cddf401dd50f3b2a3ae117)
Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'doc/examples/resampling_audio.c')
0 files changed, 0 insertions, 0 deletions