This is the mail archive of the gcc@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]

Re: Building libstdc++ non-shared with -fpic ?


On Jul  1, 2000, Richard Earnshaw <rearnsha@arm.com> wrote:

>> > That would imply that you are able to build shared libraries, which
>> > use code which is not position independent
>> 
>> That is indeed the case.

> But only if your object model supports it.

Not only the object model.  The dynamic loader must support it too.  I
remember a case of someone building shared libraries out of non-PIC
code on GNU/Linux/ARM (what a coincidence :-) that would fail because
glibc's ld.so wouldn't handle a particular kind of relocation.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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