From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/gcc~13/solaris-2-options.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 devdocs/gcc~13/solaris-2-options.html (limited to 'devdocs/gcc~13/solaris-2-options.html') 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 @@ +

3.19.46 Solaris 2 Options

These ‘-m’ options are supported on Solaris 2:

+-mclear-hwcap +
+

-mclear-hwcap 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.

+-mimpure-text +
+

-mimpure-text, used in addition to -shared, tells the compiler to not pass -z text to the linker when linking a shared object. Using this option, you can link position-dependent code into a shared object.

-mimpure-text 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 -mimpure-text, you should compile all source code with -fpic or -fPIC.

These switches are supported in addition to the above on Solaris 2:

+-pthreads +

This is a synonym for -pthread.

+

+ © Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
+ https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Solaris-2-Options.html +

+
-- cgit v1.2.3