PR gas/11841
authorAlan Modra <amodra@gmail.com>
Wed, 28 Jul 2010 08:43:46 +0000 (08:43 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Jul 2010 08:43:46 +0000 (08:43 +0000)
* symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.

gas/ChangeLog
gas/symbols.c

index c435a4dd4126cef1ca82a9c3a3fcc645d85b0e4a..2b2f8b73170f457c374f7edc21a4f1b3134a715e 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-28  Alan Modra  <amodra@gmail.com>
+
+       PR gas/11841
+       * symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.
+
 2010-07-28  Alan Modra  <amodra@gmail.com>
 
        * config/tc-ppc.c (md_assemble): Don't attempt to print NUL in
index 9202a9b315ab0dcf921a3af8040aa90ac476d997..938cf2e91ab647b7295bafc065c86ac1302a90e1 100644 (file)
@@ -572,8 +572,8 @@ symbol_clone (symbolS *orgsymP, int replace)
     as_fatal ("bfd_make_empty_symbol: %s", bfd_errmsg (bfd_get_error ()));
   newsymP->bsym = bsymnew;
   bsymnew->name = bsymorg->name;
-  bsymnew->flags =  bsymorg->flags;
-  bsymnew->section =  bsymorg->section;
+  bsymnew->flags = bsymorg->flags & !BSF_SECTION_SYM;
+  bsymnew->section = bsymorg->section;
   bfd_copy_private_symbol_data (bfd_asymbol_bfd (bsymorg), bsymorg,
                                bfd_asymbol_bfd (bsymnew), bsymnew);