This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Relocations put in read-only segment?
On Fri, Apr 24, 1998 at 01:53:05PM -0600, Jeffrey A Law wrote:
> This is a pretty common problem; generally it's fixed by having
> SELECT_SECTION and related functions put these things into the
> data section for PIC code generation. Unfortunately many ports
> do not handle this case correctly.
Actually, Jeff,
] pushl LC1@GOTOFF(%ebx)
vs
] movl _XtStrings@GOT(%ebx),%eax
] addl $788,%eax
] pushl %eax
is a code gen issue and has nothing to do with SELECT_SECTION.
This would have to do with GO_IF_LEGITIMATE_ADDRESS and friends.
But I don't replicate it with the given example and 19980418.
r~