aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-03-04 17:15:23 +0000
committerJeff Law <law@redhat.com>1996-03-04 17:15:23 +0000
commiteff5fcda23f1eef9cbb20d3c3b3069511009f98b (patch)
tree4790ebbfdf8cb66145dd0a83890e3dcb74bd08eb /gas/config
parent4f005fea322f156026a59cb119003462b68b7d28 (diff)
downloadgdb-eff5fcda23f1eef9cbb20d3c3b3069511009f98b.zip
gdb-eff5fcda23f1eef9cbb20d3c3b3069511009f98b.tar.gz
gdb-eff5fcda23f1eef9cbb20d3c3b3069511009f98b.tar.bz2
* config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
Set "sym_ptr_ptr" and "addend" fields to dummy values for R_N0SEL and R_N1SEL. Net buglet, and something I just noticed was wrong.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-hppa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index ab880e3..0dbf21a 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -1,5 +1,5 @@
/* tc-hppa.c -- Assemble for the PA
- Copyright (C) 1989 Free Software Foundation, Inc.
+ Copyright (C) 1989, 1996 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -2704,7 +2704,7 @@ tc_gen_reloc (section, fixp)
relocs[0]->howto = bfd_reloc_type_lookup (stdoutput, *codes[0]);
relocs[0]->address = fixp->fx_frag->fr_address + fixp->fx_where;
relocs[0]->addend = 0;
- relocs[0]->sym_ptr_ptr = &fixp->fx_addsy->bsym;
+ relocs[1]->sym_ptr_ptr = &fixp->fx_addsy->bsym;
relocs[1]->howto = bfd_reloc_type_lookup (stdoutput, *codes[1]);
relocs[1]->address = fixp->fx_frag->fr_address + fixp->fx_where;
relocs[1]->addend = 0;
@@ -2750,6 +2750,8 @@ tc_gen_reloc (section, fixp)
case R_RSEL:
case R_BEGIN_BRTAB:
case R_END_BRTAB:
+ case R_N0SEL:
+ case R_N1SEL:
/* There is no symbol or addend associated with these fixups. */
relocs[i]->sym_ptr_ptr = &dummy_symbol->bsym;
relocs[i]->addend = 0;