This is the mail archive of the gcc@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: Why does dynamic relocation change depending on the optimization


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>


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