This is the mail archive of the gcc-patches@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: PATCH: Fix invalid loader fixups from shared libobjc with hpux 10.20


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


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