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: Stephen Smith <ischis2 at home dot com>
- Subject: Re: Why does dynamic relocation change depending on the optimization
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 22 Mar 2001 13:26:17 -0800
- CC: gcc at gcc dot gnu dot org
- References: <3ABA3B88.3C4E5E2D@home.com>
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>