aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-23 18:32:51 +0000
committerNick Clifton <nickc@redhat.com>2001-02-23 18:32:51 +0000
commitb653e7f90a423e65765c54f09e6170927cdd2b75 (patch)
tree35f7cd40435b5ca590226043e4ff647d8e5bdeb3 /gas
parentfef4ae2e56a324ae77779e63a5c023d370efe86e (diff)
downloadgdb-b653e7f90a423e65765c54f09e6170927cdd2b75.zip
gdb-b653e7f90a423e65765c54f09e6170927cdd2b75.tar.gz
gdb-b653e7f90a423e65765c54f09e6170927cdd2b75.tar.bz2
Don't mark a fixup as done if it's against a symbol.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mn10300.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8b6b1f2..5ec3fd8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-23 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/tc-mn10300.c (md_apply_fix3): Don't mark a fixup as
+ done if it's against a symbol.
+
2001-02-22 Timothy Wall <twall@cygnus.com>
* config/tc-ia64.c (ia64_target_format): Return ia64-aix-specific
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index 51bc3fb..21e8e42 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -1,5 +1,5 @@
/* tc-mn10300.c -- Assembler code for the Matsushita 10300
- Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation.
This file is part of GAS, the GNU Assembler.
@@ -1963,9 +1963,11 @@ md_apply_fix3 (fixp, valuep, seg)
md_number_to_chars (fixpos, value, size);
- fixp->fx_done = 1;
- return 0;
+ /* If a symbol remains, pass the fixup, as a reloc, onto the linker. */
+ if (fixp->fx_addsy == NULL)
+ fixp->fx_done = 1;
+ return 0;
}
/* Return nonzero if the fixup in FIXP will require a relocation,