* config/tc-xtensa.c (md_apply_fix): Set value to zero for PLT relocs.

This commit is contained in:
Bob Wilson
2006-01-26 05:21:43 +00:00
parent b6c0a7f644
commit d47d412e85
2 changed files with 9 additions and 5 deletions

View File

@ -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> 2006-01-21 Jie Zhang <jie.zhang@analog.com>
* config/bfin-parse.y (asm_1): Check value range for 16 bit immediate * config/bfin-parse.y (asm_1): Check value range for 16 bit immediate

View File

@ -1,5 +1,5 @@
/* tc-xtensa.c -- Assemble Xtensa instructions. /* 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. This file is part of GAS, the GNU Assembler.
@ -5535,7 +5535,7 @@ void
md_apply_fix (fixS *fixP, valueT *valP, segT seg) md_apply_fix (fixS *fixP, valueT *valP, segT seg)
{ {
char *const fixpos = fixP->fx_frag->fr_literal + fixP->fx_where; char *const fixpos = fixP->fx_frag->fr_literal + fixP->fx_where;
valueT val; valueT val = 0;
switch (fixP->fx_r_type) switch (fixP->fx_r_type)
{ {
@ -5583,8 +5583,9 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg)
val = *valP; val = *valP;
fixP->fx_done = 1; fixP->fx_done = 1;
} }
else /* fall through */
break;
case BFD_RELOC_XTENSA_PLT:
md_number_to_chars (fixpos, val, fixP->fx_size); md_number_to_chars (fixpos, val, fixP->fx_size);
fixP->fx_no_overflow = 0; /* Use the standard overflow check. */ fixP->fx_no_overflow = 0; /* Use the standard overflow check. */
break; break;
@ -5628,7 +5629,6 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg)
} }
break; break;
case BFD_RELOC_XTENSA_PLT:
case BFD_RELOC_XTENSA_ASM_EXPAND: case BFD_RELOC_XTENSA_ASM_EXPAND:
case BFD_RELOC_XTENSA_SLOT0_ALT: case BFD_RELOC_XTENSA_SLOT0_ALT:
case BFD_RELOC_XTENSA_SLOT1_ALT: case BFD_RELOC_XTENSA_SLOT1_ALT: