aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-05 21:58:19 +0000
committerAlan Modra <amodra@gmail.com>2009-10-05 21:58:19 +0000
commitd96eea71e0c43152999edfaa77d4f08b95509f93 (patch)
tree753e885d49c80d0114fbbd01346384bf4089e9d5
parentc188d0bb5971f424ad1d52c480fb2728120d9eb4 (diff)
downloadgdb-d96eea71e0c43152999edfaa77d4f08b95509f93.zip
gdb-d96eea71e0c43152999edfaa77d4f08b95509f93.tar.gz
gdb-d96eea71e0c43152999edfaa77d4f08b95509f93.tar.bz2
PR gas/10704
* symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/symbols.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d58448b..19c6633 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2009-10-06 Alan Modra <amodra@bigpond.net.au>
+ PR gas/10704
+ * symbols.c (snapshot_symbol): Revert 2006-01-09 patch for PR2117.
+
+2009-10-06 Alan Modra <amodra@bigpond.net.au>
+
* read.c (s_reloc): Don't use expression_and_evaluate.
2009-10-02 Peter Bergner <bergner@vnet.ibm.com>
diff --git a/gas/symbols.c b/gas/symbols.c
index 304a1ee..4cfa85b 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1514,10 +1514,7 @@ snapshot_symbol (symbolS **symbolPP, valueT *valueP, segT *segP, fragS **fragPP)
}
}
- /* Never change a defined symbol. */
- if (symbolP->bsym->section == undefined_section
- || symbolP->bsym->section == expr_section)
- *symbolPP = symbolP;
+ *symbolPP = symbolP;
*valueP = expr.X_add_number;
*segP = symbolP->bsym->section;
*fragPP = symbolP->sy_frag;