* as.c (main): Only call create_obj_attrs_section if IS_ELF.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 29 Jun 2007 20:04:26 +0000 (20:04 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 29 Jun 2007 20:04:26 +0000 (20:04 +0000)
gas/ChangeLog
gas/as.c

index 64268609f2e9e1722bd69f91d6e83bcce797a397..5a9e725488aa6f406e340959bf2982a84f8b0f64 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * as.c (main): Only call create_obj_attrs_section if IS_ELF.
+
 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
 
        * as.c (create_obj_attrs_section): New.
index c1315eb7685ae968f39261319404bf578661a8e5..b05f9d514a3086189fd0d0aeec00e32e0e0fe6dc 100644 (file)
--- a/gas/as.c
+++ b/gas/as.c
@@ -1174,7 +1174,8 @@ main (int argc, char ** argv)
 #endif
 
 #ifdef OBJ_ELF
-  create_obj_attrs_section ();
+  if (IS_ELF)
+    create_obj_attrs_section ();
 #endif
 
 #if defined OBJ_ELF || defined OBJ_MAYBE_ELF