* config/tc-xtensa.c (relaxable_section): Check for .eh_frame.
authorBob Wilson <bob.wilson@acm.org>
Thu, 8 Nov 2007 01:40:58 +0000 (01:40 +0000)
committerBob Wilson <bob.wilson@acm.org>
Thu, 8 Nov 2007 01:40:58 +0000 (01:40 +0000)
gas/ChangeLog
gas/config/tc-xtensa.c

index f96c662..1690154 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-07  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/tc-xtensa.c (relaxable_section): Check for .eh_frame.
+
 2007-11-07  Eric B. Weddington  <eweddington@cso.atmel.com>
 
        * config/tc-avr.c (mcu_types): Add ATtiny88 device.
index 0738f27..2fd11b1 100644 (file)
@@ -4728,7 +4728,8 @@ xtensa_set_frag_assembly_state (fragS *fragP)
 static bfd_boolean
 relaxable_section (asection *sec)
 {
-  return (sec->flags & SEC_DEBUGGING) == 0;
+  return ((sec->flags & SEC_DEBUGGING) == 0
+         && strcmp (sec->name, ".eh_frame") != 0);
 }