This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug middle-end/28781] -fPIC generates non-PIC code



------- 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


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