summaryrefslogtreecommitdiffstats
path: root/gcc/config/sparc/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sparc/linux.h')
-rw-r--r--gcc/config/sparc/linux.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h
index ecb473152ae..107880f401d 100644
--- a/gcc/config/sparc/linux.h
+++ b/gcc/config/sparc/linux.h
@@ -256,6 +256,11 @@ do { \
#define LINK_GCC_C_SEQUENCE_SPEC \
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
+/* Use --as-needed -lgcc_s for eh support. */
+#ifdef HAVE_LD_AS_NEEDED
+#define USE_LD_AS_NEEDED 1
+#endif
+
/* Do code reading to identify a signal frame, and set the frame
state data appropriately. See unwind-dw2.c for the structs. */
OpenPOWER on IntegriCloud