http://llvm.org/bugs/show_bug.cgi?id=7987
Summary: ELFObjectWriter emits wrong relocation type for PLT
symbols
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]
#include <stdio.h>
int main() {
int a;
printf("%p\n", &a);
return 0;
}
On x86-64 Linux, the integrated assembler currently emits R_X86_64_PC32 type
relocation entry for pri...@plt with pic relocation model. It should emit
R_X86_64_PLT32 type relocation entry for it.
$clang -cc1 -emit-obj a.c
can reproduce the bug.
--
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