* config/tc-hppa.c (tc_gen_reloc): Fix typo in R_COMP2 code.
authorJeff Law <law@redhat.com>
Mon, 4 Mar 1996 17:15:23 +0000 (17:15 +0000)
committerJeff Law <law@redhat.com>
Mon, 4 Mar 1996 17:15:23 +0000 (17:15 +0000)
        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.

gas/ChangeLog
gas/config/tc-hppa.c

index 7620a1be80fd794c9b2b009666101f14651d6c7d..3b112a5dec1ed49b9bb132a0643e7973bbb2c9f3 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar  4 10:13:06 1996  Jeffrey A Law  (law@cygnus.com)
+
+       * 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.
+
 Fri Mar  1 10:20:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
 
        * flonum-konst.c: Add two more constants for 1e+-2048 and
index ab880e3da016181388ca8eb90691876d20a270b8..0dbf21a07c4f0e5f0ee473bb9e6955bfefc21262 100644 (file)
@@ -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;
This page took 0.048023 seconds and 4 git commands to generate.