This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Incorrect options passed to ld on i386-pc-solaris2 with -mimpure-text
- To: law at cygnus dot com
- Subject: Re: Incorrect options passed to ld on i386-pc-solaris2 with -mimpure-text
- From: David Daney <daney at ibw dot com dot ni>
- Date: Mon, 17 May 1999 07:33:35 -0600
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <2892.926927797@upchuck.cygnus.com>
Jeffrey A Law wrote:
>
> In message <373650CD.33400577@ibw.com.ni>you write:
> > The sparc version of gcc has the -mimpure-text option that causes -z
> > text not to be passed to ld. The i386 version does not do this. This
> > causes problems when compiling the java 1.2 sources on Solaris 2.7/i386.
> >
> > The following patch seems to correct the problem (the change was copied
> > in from the sparc version of the file):
> Don't you also need to add -mimpure-text to TARGET_SWITCHES in i386.md?
>
Perhaps that is true, however this seems to be more of a Solaris issue
rather than an i386 problem. Also in my haste to get it to work, I may
not have made proper changes to all required files.
> You should also update invoke.texi to mention the new switch under the
> "i386 Options".
>
> jeff
--
David S. Daney Managua Nicaragua +505 265-7318
daney@ibw.com.ni