invoke.texi (SPARC Options): Document ``-mimpure-text''.
authorFlorian Weimer <fw@deneb.enyo.de>
Fri, 13 Jun 2003 10:11:45 +0000 (12:11 +0200)
committerFlorian Weimer <fw@gcc.gnu.org>
Fri, 13 Jun 2003 10:11:45 +0000 (12:11 +0200)
2003-06-13  Florian Weimer  <fw@deneb.enyo.de>

* doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.

From-SVN: r67888

gcc/ChangeLog
gcc/doc/invoke.texi

index 1804cf4..6710944 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-13  Florian Weimer  <fw@deneb.enyo.de>
+
+       * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
+
 2003-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
index 1a8f78d..990096b 100644 (file)
@@ -5935,6 +5935,22 @@ this to work.
 Generate output containing quad-word (long double) floating point
 instructions.
 
+@item -mimpure-text
+@opindex mimpure-text
+@option{-mimpure-text}, used in addition to @option{-shared}, tells
+the compiler to not pass @option{-z text} to the linker when linking a
+shared object.  Using this option, you can link position-dependent
+code into a shared object.  
+
+@option{-mimpure-text} suppresses the ``relocations remain against
+allocatable but non-writable sections'' linker error message.
+However, the necessary relocations will trigger copy-on-write, and the
+shared object is not actually shared across processes.  Instead of
+using @option{-mimpure-text}, you should compile all source code with
+@option{-fpic} or @option{-fPIC}.
+
+This option is only available on SunOS and Solaris.
+
 @item -msoft-quad-float
 @opindex msoft-quad-float
 Generate output containing library calls for quad-word (long double)