bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4365] New: COFF relocation record bug


From: gwoltman at earthlink dot net
Subject: [Bug binutils/4365] New: COFF relocation record bug
Date: 15 Apr 2007 00:29:13 -0000

I'm fairly certain there is a bug in the COFF code.  My particular problem is
with coff-x86-64 in the development version of binutils, but I've had similar
troubles with 32-bit coff in the past.

I have rather large COFF object files built by MASM that I translate to ELF
using objcopy.

The instruction that isn't converting properly is:
        "mov    rax, OFFSET some_variable"
Dumpbin and objdump seem to indicate the relocation record for "some_variable"
is not being converted properly.  I'd be happy to provide you with source code,
object files, or even work to get the smallest possible reproducible source
file.  If you're not interested in the problem, I'll find some way to work
around the trouble.

The similar 32-bit object file problem I had forced me to replace 
        "CALL   some_routine"
with:
        push OFFSET xxx
        push OFFSET somer_routine
        ret
        xxx:    
This may have been fixed.  I don't know as I've used macros to work around the 
problem for several years.

-- 
           Summary: COFF relocation record bug
           Product: binutils
           Version: 2.18 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: gwoltman at earthlink dot net
                CC: bug-binutils at gnu dot org


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

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