summaryrefslogtreecommitdiff
path: root/gas/ehopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/ehopt.c')
-rw-r--r--gas/ehopt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/ehopt.c b/gas/ehopt.c
index 2b0609be00..048bc57b5a 100644
--- a/gas/ehopt.c
+++ b/gas/ehopt.c
@@ -275,6 +275,11 @@ check_eh_frame (expressionS *exp, unsigned int *pnbytes)
if (flag_traditional_format)
return 0;
+#ifdef md_allow_eh_opt
+ if (! md_allow_eh_opt)
+ return 0;
+#endif
+
/* Select the proper section data. */
if (strcmp (segment_name (now_seg), ".eh_frame") == 0)
d = &eh_frame_data;