This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

relocation R_X86_64_PC32 and shared libraries


I am running Fedora Core 3 (x86_64) with:
gcc (GCC) 3.4.3 20050124 (Red Hat 3.4.3-17)
(I've also tried with gcc4 (GCC) 4.0.0 20050125 (Red Hat 4.0.0-0.22))
GNU ld version 2.15.95 20050302 (cvs update as of this morning)
glibc-devel-2.3.4-2.fc3

When I try and compile Mozilla from CVS, I get the following error:

> gcc -shared -Wl,-soname -Wl,libnspr4.so -o libnspr4.so [lots of o files]
...
> /usr/bin/ld: io/./priometh.o: relocation R_X86_64_PC32 against
> `memcpy@@GLIBC_2.2.5' can not be used when making a shared object;
> recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value

It WAS compiled with "-pipe -ansi -Wall -pthread -O2 -fPIC"
and a bunch of Mozilla defines.

$ file io/./priometh.o
io/./priometh.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
$ nm io/./priometh.o | grep memcpy
                 U memcpy

Here is the exact command I ran, along with my prior plea for help. :-)

http://groups-beta.google.com/group/netscape.public.mozilla.builds/browse_thread/thread/df8c4bf5a64462c9/af3d0723d08402b1

I tried searching the binutils mailing list archive and this is the
closest I found to my issue:
http://sourceware.org/ml/binutils/2004-10/msg00293.html

  Any help would be greatly appreciated,
  -- /v\atthew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]