summaryrefslogtreecommitdiff
path: root/libgcc/config/rs6000/t-crtstuff
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc/config/rs6000/t-crtstuff')
-rw-r--r--libgcc/config/rs6000/t-crtstuff6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgcc/config/rs6000/t-crtstuff b/libgcc/config/rs6000/t-crtstuff
new file mode 100644
index 0000000000..0b2601b05b
--- /dev/null
+++ b/libgcc/config/rs6000/t-crtstuff
@@ -0,0 +1,6 @@
+# If .sdata is enabled __CTOR_{LIST,END}__ go into .sdata instead of
+# .ctors.
+# Do not build crtend.o with -Os as that can result in references to
+# out-of-line register save/restore functions, which may be unresolved
+# as crtend.o is linked after libgcc.a. See PR45053.
+CRTSTUFF_T_CFLAGS = -msdata=none -O2