This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix invalid loader fixups from shared libobjc with hpux 10.20
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: PATCH: Fix invalid loader fixups from shared libobjc with hpux 10.20
- From: Stan Shebs <shebs at apple dot com>
- Date: Tue, 29 May 2001 14:59:49 -0700
- CC: gcc-patches at gcc dot gnu dot org
- References: <200105291738.NAA04179@hiauly1.hia.nrc.ca>
John David Anglin wrote:
>
> The following patch fixes the problem reported here:
> <http://gcc.gnu.org/ml/gcc-bugs/2001-05/msg00783.html>.
>
> The principal change is to put the declaration for the class reference
> in the variable section rather than the readonly data section. The HP
> linker under hpux 10.20 can't perform the relocation required when
> the reference is in a shared library. Putting the variable in the variable
> section (which defaults to the readonly data section on many machines)
> and setting the relocation flag resolves this issue.
Geoff K already checked in a patch right around the first hunk - please
update your sources and recheck, because part of the code you're
patching no longer exists.
> I also noted that the class reference labels were output without changing
> to the readonly data section. On the HP, they were going into the $CODE$
> subspace (the text section).
The second hunk looks OK to me, although just for paranoia's sake it
would be good to have a Linux build/test (any arch) for the branch.
Stan