[Bug debugedit/28598] 5.0 test failures on hppa-linux-gnu

mark at klomp dot org sourceware-bugzilla@sourceware.org
Wed Nov 17 18:28:05 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=28598

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
The issue here is that debugedit doesn't know about hppa ELF relocations (as
used in debug sections). See tools/debugedit.c (setup_relbuf):

      rtype = ELF64_R_TYPE (rela.r_info);
      switch (dso->ehdr.e_machine)
        {
        case EM_SPARC:
        case EM_SPARC32PLUS:
        case EM_SPARCV9:
          if (rtype != R_SPARC_32 && rtype != R_SPARC_UA32)
            goto fail;
          break;
        case EM_386:
          if (rtype != R_386_32)
            goto fail;
          break;
        case EM_PPC:
        case EM_PPC64:
          if (rtype != R_PPC_ADDR32 && rtype != R_PPC_UADDR32)
            goto fail;
          break;
        case EM_S390:
          if (rtype != R_390_32)
            goto fail;
          break;
        case EM_IA_64:
          if (rtype != R_IA64_SECREL32LSB)
            goto fail;
          break;
        case EM_X86_64:
          if (rtype != R_X86_64_32)
            goto fail;
          break;
        case EM_ALPHA:
          if (rtype != R_ALPHA_REFLONG)
            goto fail;
          break;
#if defined(EM_AARCH64) && defined(R_AARCH64_ABS32)
        case EM_AARCH64:
          if (rtype != R_AARCH64_ABS32)
            goto fail;
          break;
#endif
        case EM_68K:
          if (rtype != R_68K_32)
            goto fail;
          break;
#if defined(EM_RISCV) && defined(R_RISCV_32)
        case EM_RISCV:
          if (rtype != R_RISCV_32)
            goto fail;
          break;
#endif
#if defined(EM_MCST_ELBRUS) && defined(R_E2K_32_ABS)
        case EM_MCST_ELBRUS:
          if (rtype != R_E2K_32_ABS)
                  goto fail;
          break;
#endif
        default:
        fail:
          error (1, 0, "%s: Unhandled relocation %d at [%d] for %s section",
                 dso->filename, rtype, ndx, sec->name);
        }

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list