This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does dynamic relocation change depending on the optimization
- To: Geoff Keating <geoffk at geoffk dot org>
- Subject: Re: Why does dynamic relocation change depending on the optimization
- From: Stephen Smith <ischis2 at home dot com>
- Date: Thu, 22 Mar 2001 20:42:19 -0700
- CC: gcc at gcc dot gnu dot org
- References: <3ABA3B88.3C4E5E2D@home.com> <jm1yrpv6km.fsf@geoffk.org>
Turns out it was a misplaced -L switch
Geoff Keating wrote:
> Stephen Smith <ischis2@home.com> writes:
>
> > I have a piece of code whose relocation record changes from R_PPC_JMP_SLOT to R_PPC_COPY if I turn optimization on.
> > The OS I am only supports ADDR32, JMP_SLOT and RELATIVE relocations.
> >
> > What should I do in the code to change this?
>
> If you can't ever have any COPY relocs, what you have to do is not use
> any data from a shared object, only functions.
>
> --
> - Geoffrey Keating <geoffk@geoffk.org>