summaryrefslogtreecommitdiff
path: root/gas/ehopt.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-11-06 17:15:10 +0000
committerNick Clifton <nickc@redhat.com>2007-11-06 17:15:10 +0000
commit80113bbc8546f2b6c872b24db712421b43801346 (patch)
tree6f249b44091f7356fef79d6346ac5da261176763 /gas/ehopt.c
parent4fbee0f3244b0469fcf490c83be3b083d1afd7c3 (diff)
downloadbinutils-redhat-80113bbc8546f2b6c872b24db712421b43801346.tar.gz
* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke it to see if the optimizations should be applied.
* config/tc-mn10300.h (md_allow_eh_opt): Define. Only allow call frame optimization if linker relaxation is not enabled. * gas/elf/elf.exp: Disable ehopt test for mn10300.
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;