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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs