summaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-06-29 20:04:26 +0000
committerJoseph Myers <joseph@codesourcery.com>2007-06-29 20:04:26 +0000
commit08bad7191932646091013dbb866d3ec9444b7d03 (patch)
treea4212f953d7ba1b954dbf8211aa2b1473353ddcb /gas/as.c
parentbd79ca90da7bd5b57d04ec77463ef260375e63de (diff)
downloadbinutils-redhat-08bad7191932646091013dbb866d3ec9444b7d03.tar.gz
* as.c (main): Only call create_obj_attrs_section if IS_ELF.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/as.c b/gas/as.c
index c1315eb768..b05f9d514a 100644
--- 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