[LLVMbugs] [Bug 22139] New: ARM RELOCATION 0x3f is not supported

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 8 13:51:47 PST 2015


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

            Bug ID: 22139
           Summary: ARM RELOCATION 0x3f is not supported
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-as
          Assignee: unassignedbugs at nondot.org
          Reporter: yinma at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

test case:

    .text

    .macro ldrtest load store sym offset

    \load    r0, [r0, #:pc_g1:(\sym \offset)]
    \store    r0, [r0, #:pc_g1:(\sym \offset)]

    .endm

@ LDR/STR/LDRB/STRB only have 12 bits available for the magnitude of the
addend.
@ So these should all (just) work.

    ldrtest ldr str f "+ 4095"
    ldrtest ldrb strb f "+ 4095"
    ldrtest ldr str f "- 4095"
    ldrtest ldrb strb f "- 4095"

@ The same as the above, but for a local symbol.  These should not be
@ resolved by the assembler but instead left to the linker.

    ldrtest ldr str localsym "+ 4095"
    ldrtest ldrb strb localsym "+ 4095"
    ldrtest ldr str localsym "- 4095"
    ldrtest ldrb strb localsym "- 4095"

localsym:
    mov    r0, #0

-- 
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/20150108/7cdd1ae9/attachment.html>


More information about the llvm-bugs mailing list