How do you debug X86_64 relocation errors

sean seandarcy2@gmail.com
Sat Aug 20 18:53:00 GMT 2005


Mike Frysinger wrote:
> On Friday 19 August 2005 10:58 pm, sean wrote:
> 
>>I'm trying to build ffmpeg on amd64, which has a x264
>>plugin. I built x264 with -fPIC which gives x264.a (dunno
>>why the devs only want a static lib).
>>
>><snip>
>>
>>I've strewn -fPIC's all over the place. What else do you
>>look for?
> 
> 
> it doesnt matter if you build ffmpeg with -fPIC ... as the error message 
> indicates, the object files in libx264.a need to be built as PIC
> -mike
> 
  No. I understood that. I DID build x264 with -fPIC. I've 
put -fPIC all over the place.

For instance:

gcc -Wall -I. -O4 -ffast-math -D__X264__ -DHAVE_MALLOC_H 
-DHAVE_MMXEXT -DHAVE_SSE2 -DARCH_X86_64 -DSYS_LINUX 
-DHAVE_PTHREAD=1 -DVISUALIZE=1 -march=athlon64 -ffast-math 
-fomit-frame-pointer -O2 -fPIC -pipe -mfpmath=sse 
-ftree-vectorize -s -fomit-frame-pointer 
-DHAVE_GETOPT_LONG=1   -c -o x264.o x264.c

Where do I look now now?

sean



More information about the Binutils mailing list