From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: greg zhang Cc: help-gcc@gnu.org Subject: Re: About libstdc++ link staticlly Date: Thu, 09 Mar 2000 16:59:00 -0000 Message-id: References: <20000308211734.7974.qmail@web1610.mail.yahoo.com> X-SW-Source: 2000-03/msg00051.html On Mar 8, 2000, greg zhang wrote: > To a normal project(I mean exe module), I can do it > with just removing libstdc++.so.2.8.1.1., gcc will > link libstdc++.a archive file automaticlly. > Text relocation remains reference file > against symbol > ..../XXX.o > fprintf ..../XXX.o > ld: fatal: relocation remains against allocatable but > non-writable sections. > I don't know how to fix it? You'd have to compile all objects of the static libstdc++ with -fPIC to be able to link a shared library with it. -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: greg zhang Cc: help-gcc@gnu.org Subject: Re: About libstdc++ link staticlly Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: References: <20000308211734.7974.qmail@web1610.mail.yahoo.com> X-SW-Source: 2000-q1/msg00361.html Message-ID: <20000401000000.G6nUBXRlt-EVA-ghJAW6EjwGyZKRNyMwZtC8eqSiOjM@z> On Mar 8, 2000, greg zhang wrote: > To a normal project(I mean exe module), I can do it > with just removing libstdc++.so.2.8.1.1., gcc will > link libstdc++.a archive file automaticlly. > Text relocation remains reference file > against symbol > ..../XXX.o > fprintf ..../XXX.o > ld: fatal: relocation remains against allocatable but > non-writable sections. > I don't know how to fix it? You'd have to compile all objects of the static libstdc++ with -fPIC to be able to link a shared library with it. -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaraná Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com Free Software Developer and Evangelist CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me