[x264-devel] does yasm generate X86_64 relo symbols for gnu ld?

sean darcy seandarcy2 at gmail.com
Sun Aug 21 19:42:53 CEST 2005


I'm trying to link x264 with ffmpeg on an amd64. x264 uses yasm for
some of its core routines. I've built x264 with -fPIC for gcc-4.0.1
and -m amd64 for yasm.

For example:

yasm -f elf -m amd64 -m amd64 -o common/amd64/dct-a.o common/amd64/dct-a.asm

Yet when ffmpeg tries to link with x264 I get:

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libx264.a(dct-a.o):
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libx264.a:
could not read symbols: Bad value

Is there some other command line switch needed for yasm?

FWIW,
 rpm -q binutils
binutils-2.16.91.0.2-4

sean

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list