unresolved _GLOBAL_OFFSET_TABLE_
Alexandre Oliva
oliva@dcc.unicamp.br
Wed Mar 31 23:54:00 GMT 1999
On Mar 2, 1999, Daniele Lugli <genlogic@inrete.it> wrote:
> I am trying to port to egcs-2.90.29 (redhat 5.2 i386 Linux) a module
> written in c++ which used to work with some previous version. It
> compiles and links but when I try to insmod I get "unresolved
> _GLOBAL_OFFSET_TABLE_". I think it has something to do with libgcc.a,
> which I need to include in the link.
This may have to do with the fact that libgcc is now compiled with
-fPIC, so that it will work even when symbols are copied into shared
libraries.
You better arrange that you don't need anything from libgcc, or create
your own version of libgcc without -fPIC.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list