On Tue, 5 Feb 2013, Luca Barbato wrote:
> On 02/02/13 00:28, Daniel Kang wrote:
> > ---
> > I am very skeptical when assembly works on the first time. More testing
> > would be appreciated.
> > ---
> > libavcodec/x86/dsputil.asm | 159 ++++++++++++++++++++++++++++++++++++
> > libavcodec/x86/dsputil_mmx.c | 185
> > ++----------------------------------------
> > 2 files changed, 167 insertions(+), 177 deletions(-)
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> libavcodec/libavcodec.a(dsputil.o): relocation R_X86_64_32 against
> `ff_h263_loop_filter_strength' can not be used when making a shared
> object; recompile with -fPIC
> libavcodec/libavcodec.a: could not read symbols: Bad value
>
> Looks like something is broken for x86_64.
The offending line is
movzx r3d, BYTE [ff_h263_loop_filter_strength+r2]
since you can't have both a register offset and a PIC offset in the same
address.
--Loren Merritt
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel