From 8c7504802aa101a9df8e799e1d1943ab7b5ff80b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 6 Nov 2007 17:15:10 +0000 Subject: * 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. --- gas/config/tc-mn10300.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gas/config') 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) -- cgit v1.1