[LLVMbugs] [Bug 7987] New: ELFObjectWriter emits wrong relocation type for PLT symbols
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Aug 25 01:37:28 PDT 2010
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: unassignedbugs at nondot.org
ReportedBy: xuzhongxing at gmail.com
CC: llvmbugs at cs.uiuc.edu
#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 printf at 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.
More information about the llvm-bugs
mailing list