[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group |
Date: |
Fri, 11 Nov 2016 15:38:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20800
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Keno Fischer from comment #2)
> This is on stock Ubuntu 16.10. Try adding `-fPIE` to the compile invocation
> maybe? I know Debian recently switched that on by default.
Works for me:
address@hidden pr20800]$ cat test.c
#include <stdio.h>
int main(void) {
printf("Hello World");
return 0;
}
address@hidden pr20800]$ gcc -shared -mcmodel=large -fno-builtin -c test.c -fPIE
address@hidden pr20800]$ gcc -Wl,-rpath,/lib64 -m64 -Wl,--start-group test.o
-Wl,--end-group -pie
address@hidden pr20800]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/20800] New: BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, keno at juliacomputing dot com, 2016/11/09
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, hjl.tools at gmail dot com, 2016/11/10
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, keno at juliacomputing dot com, 2016/11/10
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group,
hjl.tools at gmail dot com <=
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, keno at juliacomputing dot com, 2016/11/11
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, keno at juliacomputing dot com, 2016/11/11
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, hjl.tools at gmail dot com, 2016/11/11
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, hjl.tools at gmail dot com, 2016/11/11
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, hjl.tools at gmail dot com, 2016/11/14
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, cvs-commit at gcc dot gnu.org, 2016/11/14
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, hjl.tools at gmail dot com, 2016/11/14
- [Bug ld/20800] BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group, keno at juliacomputing dot com, 2016/11/15