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

            Bug ID: 22815
           Summary: Inconsistent logic for deciding if a relocation is
                    necessary
           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

In
---------------------
.weak f
f:
    nop
g:
    nop
    call f // case 1

.quad g - f // case 2
.quad f - g // case 3
--------------------

The 3 cases are similar. There is a difference between two points in the same
section and one of the end points is a weak symbol.

Gnu AS only produces a relocation for the call.
MC is even stranger. We produce a relocation for 1 and 3.

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