aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2006-01-26 05:21:43 +0000
committerBob Wilson <bob.wilson@acm.org>2006-01-26 05:21:43 +0000
commitd47d412e854e4b8365c64184b21ade8eccfbad39 (patch)
tree04a866b6d1dfbb7efdc99a196a6410eb62ac4657 /gas
parentb6c0a7f64406713fe826c050902788ac165c9a80 (diff)
downloadgdb-d47d412e854e4b8365c64184b21ade8eccfbad39.zip
gdb-d47d412e854e4b8365c64184b21ade8eccfbad39.tar.gz
gdb-d47d412e854e4b8365c64184b21ade8eccfbad39.tar.bz2
* config/tc-xtensa.c (md_apply_fix): Set value to zero for PLT relocs.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-xtensa.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8dc8025..574533a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2006-01-25 Bob Wilson <bob.wilson@acm.org>
+
+ * config/tc-xtensa.c (md_apply_fix): Set value to zero for PLT relocs.
+
2006-01-21 Jie Zhang <jie.zhang@analog.com>
* config/bfin-parse.y (asm_1): Check value range for 16 bit immediate
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index 766dc01..1efb7bd 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -1,5 +1,5 @@
/* tc-xtensa.c -- Assemble Xtensa instructions.
- Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
+ Copyright 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -5535,7 +5535,7 @@ void
md_apply_fix (fixS *fixP, valueT *valP, segT seg)
{
char *const fixpos = fixP->fx_frag->fr_literal + fixP->fx_where;
- valueT val;
+ valueT val = 0;
switch (fixP->fx_r_type)
{
@@ -5583,8 +5583,9 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg)
val = *valP;
fixP->fx_done = 1;
}
- else
- break;
+ /* fall through */
+
+ case BFD_RELOC_XTENSA_PLT:
md_number_to_chars (fixpos, val, fixP->fx_size);
fixP->fx_no_overflow = 0; /* Use the standard overflow check. */
break;
@@ -5628,7 +5629,6 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg)
}
break;
- case BFD_RELOC_XTENSA_PLT:
case BFD_RELOC_XTENSA_ASM_EXPAND:
case BFD_RELOC_XTENSA_SLOT0_ALT:
case BFD_RELOC_XTENSA_SLOT1_ALT: