aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-07-28 08:43:46 +0000
committerAlan Modra <amodra@gmail.com>2010-07-28 08:43:46 +0000
commit9d75b2885f7b3f98a5b4485362a95bf5b67cca6f (patch)
treef46bb7c606b3e317d95b60da742bd737dddaa34d
parentae78bbeb22f44373fa63d97c79d8d3690850a9ff (diff)
downloadgdb-9d75b2885f7b3f98a5b4485362a95bf5b67cca6f.zip
gdb-9d75b2885f7b3f98a5b4485362a95bf5b67cca6f.tar.gz
gdb-9d75b2885f7b3f98a5b4485362a95bf5b67cca6f.tar.bz2
PR gas/11841
* symbols.c (symbol_clone): Clear BSF_SECTION_SYM flag.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/symbols.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c435a4d..2b2f8b7 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
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
syntax error message.
diff --git a/gas/symbols.c b/gas/symbols.c
index 9202a9b..938cf2e 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -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);