aboutsummaryrefslogtreecommitdiff
path: root/gas/config
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
commit8c7504802aa101a9df8e799e1d1943ab7b5ff80b (patch)
tree304a13d2252064bcff551cb28d724bef16deffb1 /gas/config
parent102890f04c44b64cf5cef4588267dd9f24086ac7 (diff)
downloadgdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.zip
gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.tar.gz
gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.tar.bz2
* 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/config')
-rw-r--r--gas/config/tc-mn10300.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-mn10300.h b/gas/config/tc-mn10300.h
index 8a2e457..ca51eda 100644
--- a/gas/config/tc-mn10300.h
+++ b/gas/config/tc-mn10300.h
@@ -120,3 +120,8 @@ extern bfd_boolean mn10300_allow_local_subtract (expressionS *, expressionS *, s
#define HANDLE_ALIGN(frag) mn10300_handle_align (frag)
extern void mn10300_handle_align (fragS *);
+
+/* Only allow call frame debug info optimization when linker relaxation is
+ not enabled as otherwise we could generate the DWARF directives without
+ the relocs necessary to patch them up. */
+#define md_allow_eh_opt (linkrelax == 0)