objc/2902: collect2 doesn't ...: libtool should use collect2?

John David Anglin dave@hiauly1.hia.nrc.ca
Fri May 25 12:06:00 GMT 2001


> The problem is the subspace (section) for __objc_class_name_Object:
> 
> __objc_class_name_Object|        32|extern|data   |$CODE$
> 
> It's not legit to put data in $CODE$ on the PA.  The symbol is from Object.m.
> The other related symbol `__objc_class_name_NXConstantString' is in $LIT$:
> 
> __objc_class_name_NXConstantString|         4|extern|data   |$LIT$

This probably is a problem as well in shared libraries (from som.h):

/* We must not have a reference to an external symbol defined in a
   shared library in a readonly section, else the SOM linker will
   complain.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Gcc-bugs mailing list