[LLVMbugs] [Bug 22815] New: Inconsistent logic for deciding if a relocation is necessary

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 5 15:47:02 PST 2015


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: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150305/c7a21888/attachment.html>


More information about the llvm-bugs mailing list