This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix and simplify (Re: Fix libbacktrace -fPIC breakage from "Use libbacktrace in libgfortran")
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: ian at airs dot com (Ian Lance Taylor)
- Cc: hans-peter dot nilsson at axis dot com (Hans-Peter Nilsson), fxcoudert at gmail dot com, gcc-patches at gcc dot gnu dot org, ubizjak at gmail dot com, fortran at gcc dot gnu dot org
- Date: Thu, 27 Aug 2015 15:18:26 +0200 (CEST)
- Subject: Re: [PATCH] Fix and simplify (Re: Fix libbacktrace -fPIC breakage from "Use libbacktrace in libgfortran")
- Authentication-results: sourceware.org; auth=none
Ian Lance Taylor wrote:
> "Ulrich Weigand" <uweigand@de.ibm.com> writes:
>
> > I've verified that this works on x86_64: the resulting
> > libgfortran.so uses the -fPIC version of the libbacktrace
> > object, while libgfortran.a uses the non-PIC versions.
> >
> > On SPU, libtool will now automatically only generate the
> > non-PIC versions since the target does not support shared
> > library. So everything works as expected.
> >
> > OK for mainline?
>
> Can you verify that libgo works as expected?
Looks correct to me: On x86_64, libgo.so contains -fPIC
versions of the backtrace routine, while libgo.a contains
non-PIC versions. (There's no Go support on SPU.)
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com