This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: One more issue with loading on x86_64
- From: Andrew Haley <aph at redhat dot com>
- To: Lorenzo Pesce <lpesce at uchicago dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 01 Apr 2008 10:43:32 +0100
- Subject: Re: One more issue with loading on x86_64
- References: <DE1F54B6-C0F9-4327-BC7F-BD0515A841D5@uchicago.edu> <8E0E181B-9C8F-4427-9015-44B2F51BC624@uchicago.edu>
Lorenzo Pesce wrote:
> Thanks a lot for you help. Thanks to Ian I found the .o files compiled
> with the -fPIC.
> Using those I could build a dynamically linked library that works fine
> and it is
> accepted both by other packages (the ones I tested) and java.
>
> The executables and statically linked libraries port on the different
> implementations of
> x86_64 that I have. However, the dynamically linked libraries, which I
> build as
>
> gcc -shared -fPIC -o libroc_r.so srcdir/*.o
>
> If built on system 1 are not recognized by system 2, but if they are
> built on system 2
> they are recognized on system 1 (and 2 of course).... I can't figure out
> what the problem could
> be.
Generally speaking, we're backwards but not forwards compatible.
Andrew.