http://llvm.org/bugs/show_bug.cgi?id=19647

            Bug ID: 19647
           Summary: accepts invalid
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

MC currently accepts

    zed = foo +2
    call zed@PLT

but there is no way to represent that in ELF if foo is undefined. What is being
requested is that (on x86_64):

* we produce a R_X86_64_PLT32 with and addend of -4 to a PLT location.
* That the plt entry in turn should refer to foo+2.

It is the second part that cannot be represented. The entry will always just
refer to a symbol and there is no way to define a symbol that is some undefined
symbol + 2.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to