[FFmpeg-devel] [PATCH]configure: Enable pie for toolchain=hardened.

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Oct 5 16:14:19 EEST 2016


2016-10-04 18:00 GMT+02:00 Michael Niedermayer <michael at niedermayer.cc>:
> On Tue, Oct 04, 2016 at 12:24:00PM +0200, Carl Eugen Hoyos wrote:
>>
>> Sorry if I miss something but with this patch, the hardening_check
>> script succeeds here both for x86_32 and x86_64 (static and shared).

> only case i found that breaks is with --enable-libxavs
> /usr/bin/ld: /usr/local/lib/libxavs.a(common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
> /usr/local/lib/libxavs.a: could not read symbols: Bad value

Patch sent that fixes this issue.

I would have expected that this (pie) patch does not work on x86_32
but the binary runs fine here: Am I missing something or should I
apply to get this tested?

Carl Eugen


More information about the ffmpeg-devel mailing list