This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: objc/2902: collect2 doesn't ...: libtool should use collect2?
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Subject: Re: objc/2902: collect2 doesn't ...: libtool should use collect2?
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 25 May 2001 15:06:23 -0400 (EDT)
- Cc: nicola at brainstorm dot co dot uk, gcc-bugs at gcc dot gnu dot org
> 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)