diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/gcc~13/solaris-2-options.html | |
new repository
Diffstat (limited to 'devdocs/gcc~13/solaris-2-options.html')
| -rw-r--r-- | devdocs/gcc~13/solaris-2-options.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devdocs/gcc~13/solaris-2-options.html b/devdocs/gcc~13/solaris-2-options.html new file mode 100644 index 00000000..4476f7da --- /dev/null +++ b/devdocs/gcc~13/solaris-2-options.html @@ -0,0 +1,14 @@ +<div class="subsection-level-extent" id="Solaris-2-Options"> <div class="nav-panel"> <p> Next: <a href="sparc-options" accesskey="n" rel="next">SPARC Options</a>, Previous: <a href="sh-options" accesskey="p" rel="prev">SH Options</a>, Up: <a href="submodel-options" accesskey="u" rel="up">Machine-Dependent Options</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="subsection" id="Solaris-2-Options-1"><span>3.19.46 Solaris 2 Options<a class="copiable-link" href="#Solaris-2-Options-1"> ¶</a></span></h1> <p>These ‘<samp class="samp">-m</samp>’ options are supported on Solaris 2: </p> <dl class="table"> <dt> +<span><code class="code">-mclear-hwcap</code><a class="copiable-link" href="#index-mclear-hwcap"> ¶</a></span> +</dt> <dd> +<p><samp class="option">-mclear-hwcap</samp> tells the compiler to remove the hardware capabilities generated by the Solaris assembler. This is only necessary when object files use ISA extensions not supported by the current machine, but check at runtime whether or not to use them. </p> </dd> <dt> +<span><code class="code">-mimpure-text</code><a class="copiable-link" href="#index-mimpure-text"> ¶</a></span> +</dt> <dd> +<p><samp class="option">-mimpure-text</samp>, used in addition to <samp class="option">-shared</samp>, tells the compiler to not pass <samp class="option">-z text</samp> to the linker when linking a shared object. Using this option, you can link position-dependent code into a shared object. </p> <p><samp class="option">-mimpure-text</samp> suppresses the “relocations remain against allocatable but non-writable sections” linker error message. However, the necessary relocations trigger copy-on-write, and the shared object is not actually shared across processes. Instead of using <samp class="option">-mimpure-text</samp>, you should compile all source code with <samp class="option">-fpic</samp> or <samp class="option">-fPIC</samp>. </p> </dd> </dl> <p>These switches are supported in addition to the above on Solaris 2: </p> <dl class="table"> <dt> +<span><code class="code">-pthreads</code><a class="copiable-link" href="#index-pthreads"> ¶</a></span> +</dt> <dd><p>This is a synonym for <samp class="option">-pthread</samp>. </p></dd> </dl> </div><div class="_attribution"> + <p class="_attribution-p"> + © Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br> + <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Solaris-2-Options.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Solaris-2-Options.html</a> + </p> +</div> |
