From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: law@cygnus.com Cc: "Charles M. Hannum" , egcs@cygnus.com Subject: Re: Relocations put in read-only segment? Date: Sat, 25 Apr 1998 16:18:00 -0000 Message-id: <19980425115503.13371@dot.cygnus.com> References: <199804240119.VAA15305@lunacity.ne.mediaone.net> <17077.893447585@hurl.cygnus.com> X-SW-Source: 1998-04/msg01020.html 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~