OSDN Git Service

* as.c (main): Only call create_obj_attrs_section if IS_ELF.
authorjsm28 <jsm28>
Fri, 29 Jun 2007 20:04:26 +0000 (20:04 +0000)
committerjsm28 <jsm28>
Fri, 29 Jun 2007 20:04:26 +0000 (20:04 +0000)
gas/ChangeLog
gas/as.c

index 6426860..5a9e725 100644 (file)
@@ -1,5 +1,9 @@
 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.
        (main): Call create_obj_attrs_section for ELF.
        * read.c (s_gnu_attribute, skip_whitespace, skip_past_char,
index c1315eb..b05f9d5 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