bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/3146] New: BUG: readelf fails on ALPHA 2.16 and 2.17 due t


From: tomri at gmx dot net
Subject: [Bug binutils/3146] New: BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL pointer
Date: 29 Aug 2006 12:48:21 -0000

Support of ALPHA is bad with binutils, glibc, strace, since this is - should be
- supported by redhat. But I'll try..

In binutils 2.16 to latest from kernel.org in file binutils/readelf.c 1141:

  case EM_BLACKFIN:
          rtype = elf_bfin_reloc_type (type);
          break;

        }

      if (rtype == NULL)
#ifdef _bfd_int64_low
        printf (_("unrecognized: %-7lx"), _bfd_int64_low (type));
#else
        printf (_("unrecognized: %-7lx"), type);
#endif
      else
        printf (do_wide ? "%-22.22s" : "%-17.17s", rtype);

      if (elf_header.e_machine == EM_ALPHA
          && streq (rtype, "R_ALPHA_LITUSE")
          && is_rela)
        {

Here is a check for: if (rtype == NULL)
but then f (elf_header.e_machine == EM_ALPHA
          && streq (rtype, "R_ALPHA_LITUSE")
fails, due to NULL pointer in rtype. So this should be caught.

Build of prelink package fails with this BUG.

-- 
           Summary: BUG: readelf fails on ALPHA 2.16 and 2.17 due to NULL
                    pointer
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: tomri at gmx dot net
                CC: bug-binutils at gnu dot org,rth at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3146

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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