This is the mail archive of the gcc-bugs@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: objc/2902: collect2 doesn't ...: libtool should use collect2?


> 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)


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