aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-10-08 00:40:43 +0000
committerSteve Chamberlain <steve@cygnus>1991-10-08 00:40:43 +0000
commit6ce6f0935ff4d36e31149adab14307b9e38f47ae (patch)
tree8b26daf70ef41e83a4fc9efc222787987b49327a /gas
parent58721107a63d7e949930e6b6aee0ef8dec69c9ed (diff)
downloadgdb-6ce6f0935ff4d36e31149adab14307b9e38f47ae.zip
gdb-6ce6f0935ff4d36e31149adab14307b9e38f47ae.tar.gz
gdb-6ce6f0935ff4d36e31149adab14307b9e38f47ae.tar.bz2
Fix bug with expressions like @foo+20
Diffstat (limited to 'gas')
-rw-r--r--gas/config/obj-ieee.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-ieee.c b/gas/config/obj-ieee.c
index 4530224..aaffab5 100644
--- a/gas/config/obj-ieee.c
+++ b/gas/config/obj-ieee.c
@@ -201,7 +201,7 @@ void DEFUN(do_relocs_for,(idx),
if (s) {
if ((s->flags & BSF_UNDEFINED)==0) {
to->section = s->section;
- to->addend = s->value ;
+ to->addend += s->value ;
to->sym_ptr_ptr = 0;
if (to->howto->pcrel_offset) {
/* This is a pcrel relocation, the addend should be adjusted */
@@ -273,8 +273,8 @@ static void DEFUN(do_symbols, (abfd),
default:
abort();
}
- count++;
}
+ count++;
}
symbol_ptr_vec = (asymbol **)malloc((count+1) * sizeof(asymbol *));