[LLVMbugs] [Bug 9342] New: ARM: error related to R_ARM_MOVT_ABS relocation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 27 12:22:22 PST 2011


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

           Summary: ARM: error related to R_ARM_MOVT_ABS relocation
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mans at mansr.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6247)
 --> (http://llvm.org/bugs/attachment.cgi?id=6247)
Test case

Compiling the C files in reloc.tar.gz for ARM/Linux and linking them into an
executable using gcc (I can't get clang to link for ARM) results in a MOVT
instruction with wrong immediate data.

The C files both contain the string "hello world", and the two copies are
merged by the linker.  One of the references to this string is correct,
while the other gets a bad value in the MOVT instruction, which one depends
on the link order.

Compiling to assembler with the -S flag and using the gnu assembler, the
output is correct.

I cannot rule out a bug in the gnu linker, but I am unable to reproduce the
error using only gnu tools.

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