bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/643] New: PE support broken on LP64 host


From: arto dot huusko at utu dot fi
Subject: [Bug ld/643] New: PE support broken on LP64 host
Date: 7 Jan 2005 17:07:50 -0000

binutils version: 2.15.90-20040222

PE support in ld(1) is broken when hosted on LP64 host.

The problem is in pe-dll.c file in function fill_edata(). It does pointer
arithmetic and writes some pieces of edata memory block through
unsigned long pointers, which is very wrong on LP64 host.

I'm sorry I don't have a patch handy, but the fix I applied to pe-dll.c
is basically including <stdint.h> and doing s/unsigned long \*/uint32_t \*/g
in fill_edata().

After doing this and recompiling, I was able to produce working DLL's
for win32 on NetBSD/sparc64 host.

-- 
           Summary: PE support broken on LP64 host
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: arto dot huusko at utu dot fi
                CC: bug-binutils at gnu dot org
 GCC build triplet: sparc64-unknown-netbsd2.99.10
  GCC host triplet: sparc64-unknown-netbsd2.99.10
GCC target triplet: i386-mingw32


http://sources.redhat.com/bugzilla/show_bug.cgi?id=643

------- 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]