|
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: | Mon, 14 Nov 2016 16:01:01 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20800 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> --- address@hidden pr20800]$ cat test.c #include <stdio.h> int main(void) { printf("Hello World"); return 0; } address@hidden pr20800]$ gcc -fpie -mcmodel=large -fno-builtin test.c address@hidden pr20800]$ gcc -pie test.o -Wl,-z,now /usr/local/bin/ld: test.o(.text+0x36): unresolvable R_X86_64_PLTOFF64 relocation against symbol `printf@@GLIBC_2.2.5' /usr/local/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status address@hidden pr20800]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |