bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I believe there is a logic error in gas/config/tc-mips.c


From: Sean McNeil
Subject: I believe there is a logic error in gas/config/tc-mips.c
Date: 26 Feb 2003 18:12:05 -0800

The following appears to be a logic error that causes improper blocking
of valid reloc usage on symbols defined as .globl.  The comment
preceding the code supports the belief that it is a logic error:

diff -c -3 -p -r1.193 tc-mips.c
*** gas/config/tc-mips.c        21 Feb 2003 10:28:27 -0000      1.193
--- gas/config/tc-mips.c        27 Feb 2003 02:08:49 -0000
*************** tc_gen_reloc (section, fixp)
*** 13380,13386 ****
    if ((OUTPUT_FLAVOR == bfd_target_ecoff_flavour
         || OUTPUT_FLAVOR == bfd_target_elf_flavour)
        && code == BFD_RELOC_16_PCREL_S2
!       && mips_pic != EMBEDDED_PIC)
      reloc->howto = NULL;
    else
      reloc->howto = bfd_reloc_type_lookup (stdoutput, code);
--- 13380,13386 ----
    if ((OUTPUT_FLAVOR == bfd_target_ecoff_flavour
         || OUTPUT_FLAVOR == bfd_target_elf_flavour)
        && code == BFD_RELOC_16_PCREL_S2
!       && mips_pic == EMBEDDED_PIC)
      reloc->howto = NULL;
    else
      reloc->howto = bfd_reloc_type_lookup (stdoutput, code);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]