This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/28781] -fPIC generates non-PIC code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2006 08:10:15 -0000
- Subject: [Bug middle-end/28781] -fPIC generates non-PIC code
- References: <bug-28781-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-12 08:10 -------
/usr/bin/ld: ./flow/gslpp/.libs/libgslpp.a(datahandle.o): relocation
R_X86_64_PC32 against `vtable for GSL::WaveDataHandle' can not be used when
making a shared object; recompile with -fPIC
This looks more like a binutils issue as I think the vtable has been marked as
hidden which means it can bind local which is what is happening here so this is
a non bug unless someone can come up with a testcase or show the code to what
the class definition of the above class looks like.
And I doubt this is a regression also, more like a progression :).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|other |middle-end
Summary|[4.2 regression] -fPIC |-fPIC generates non-PIC code
|generates non-PIC code |
Target Milestone|4.2.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28781