[LLVMbugs] [Bug 9934] New: Assembler parser gives wrong relocations for $foo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 17 00:00:47 PDT 2011


           Summary: Assembler parser gives wrong relocations for $foo
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu

In NetBSD's Xen code, the following can be found:

    addq $hypercall_page,%rax

With llvm-mc, this gets turned into:

   0:    48 81 c0 00 00 00 00     add    $0x0,%rax
            3: R_X86_64_32    hypercall_page

GNU as gives:

   0:    48 05 00 00 00 00        add    $0x0,%rax
            2: R_X86_64_32S    hypercall_page

The former fails to link.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list