From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: James Macnicol Cc: egcs@cygnus.com Subject: Re: Shared C++ libs on i386-pc-solaris2.5.1 Date: Thu, 11 Sep 1997 10:01:00 -0000 Message-id: <4912.873994065@hurl.cygnus.com> References: <34174E74.7057@bohm.anu.edu.au> X-SW-Source: 1997-09/msg00406.html In message < 34174E74.7057@bohm.anu.edu.au >you write: > > Gcc is emitting a reference to __ctype into the constant pool. This is > > a place where constants are stored if they aren't valid as immediates in > > an instruction. This is for instance where floating point constants are > > stored. [ ... ] > > > > Tue Sep 9 16:29:42 1997 Jim Wilson > > > > * i386/sco5.h (READONLY_DATA_SECTION): Define. [ ... ] > Alas, this isn't the solution for i386-pc-solaris2.5.1. > READONLY_DATA_SECTION() is already defined as above in > gcc/config/i386/svr4.h which is included in the Solaris x86 config. Hmmmm. On some systems (PAs running hpux), you can't have a text/readonly data item which is initialized to the address of another item. ie .word foo isn't valid if it's going into the text or readonly data section. This is becaue the dynamic linker can't modify that memory location at runtime if "foo" is resolved from a shared library. Maybe you're running into a similar problem. Jeff