[LLVMbugs] [Bug 3852] New: symbol relocation; llvm-gcc V. gcc
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Mar 20 14:33:52 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3852
Summary: symbol relocation; llvm-gcc V. gcc
Product: tools
Version: 2.5
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: omineo at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2745)
--> (http://llvm.org/bugs/attachment.cgi?id=2745)
tarball with driver source/asm/llvm bc/binary for the file with the "bad"
symbols
I've compiled a module using llvm-gcc-4.2/llvm-2.5 and I've noticed that there
are few symbols that are marked R_X86_64_PLT32 instead of R_X86_64_PC32.
However, the same sources when compiled with gcc-4.1.2-8 do not have any
R_X86_64_PLT32 typed symbols at all.
The same set of flags are being used in both the cases, so I'm not sure why
some symbols are getting tagged with R_X86_64_PLT32.
More information:
- All the files in the module include the following pragma:
#pragma GCC visibility push(hidden)
- the flags used for compilation (gcc-specific)
<compiler> -fno-strict-aliasing -fno-working-directory -gdwarf-2 -g3 -O2 -Wall
-Werror -Wstrict-prototypes -fPIE -falign-functions=4 -falign-jumps=4
-falign-loops=4 -ffreestanding -fno-common -fno-omit-frame-pointer
-fno-strength-reduce -march=x86-64 -mcmodel=small -minline-all-stringops
-mno-red-zone -nostartfiles -nostdlib -Werror -Wno-unused-value
-Wno-pointer-sign -Wno-strict-prototypes <source-file>
- Platform: x86-64/Ubuntu
- Attachments:
- tarball with driver source/asm/llvm bc for the file with the "bad"
symbols
Please let me know if you need more information. I could not really find much
information about PLT/GOT and visibility and how the symbols are affected by
them. So, I may be wrong and this might not be a bug. But, I'm just wondering
about the difference in the symbols generated by gcc and llvm-gcc.
--
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