aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/rs6000
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-10-07 20:22:25 -0700
committerIan Lance Taylor <iant@golang.org>2021-10-07 20:24:43 -0700
commitf49e3d28be44179f07b8a06159139ce77096dda7 (patch)
treeb356bae5bf3ddb81fc9d80d60ec7290c47529d88 /libgcc/config/rs6000
parent613196462a62a28de8414b9023ec2be9a29ac3dc (diff)
downloadgcc-f49e3d28be44179f07b8a06159139ce77096dda7.zip
gcc-f49e3d28be44179f07b8a06159139ce77096dda7.tar.gz
gcc-f49e3d28be44179f07b8a06159139ce77096dda7.tar.bz2
libgcc: use .init_stack for constructors if available
* config/i386/morestack.S: Use .init_array for constructor if available. * config/rs6000/morestack.S: Likewise. * config/s390/morestack.S: Likewise.
Diffstat (limited to 'libgcc/config/rs6000')
-rw-r--r--libgcc/config/rs6000/morestack.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgcc/config/rs6000/morestack.S b/libgcc/config/rs6000/morestack.S
index a2e255e..509e506 100644
--- a/libgcc/config/rs6000/morestack.S
+++ b/libgcc/config/rs6000/morestack.S
@@ -24,6 +24,8 @@
# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
# <http://www.gnu.org/licenses/>.
+#include <auto-host.h>
+
#if _CALL_ELF == 2
.abiversion 2
#define PARAMS 32
@@ -396,7 +398,11 @@ ENTRY0(__morestack_make_guard)
# Make __stack_split_initialize a high priority constructor.
+#if HAVE_INITFINI_ARRAY_SUPPORT
+ .section .init_array.00000,"aw",@progbits
+#else
.section .ctors.65535,"aw",@progbits
+#endif
.p2align 3
.quad __stack_split_initialize
.quad __morestack_load_mmap