[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20800] New: BFD Linker failing (unresolvable R_X86_64_PLTOFF64)
From: |
keno at juliacomputing dot com |
Subject: |
[Bug ld/20800] New: BFD Linker failing (unresolvable R_X86_64_PLTOFF64) with -mcmodel=large and --start-group |
Date: |
Wed, 09 Nov 2016 21:49:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20800
Bug ID: 20800
Summary: BFD Linker failing (unresolvable R_X86_64_PLTOFF64)
with -mcmodel=large and --start-group
Product: binutils
Version: 2.27
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: keno at juliacomputing dot com
Target Milestone: ---
Reduced from UML Linux Kernel build. ld.bfd fails with the following error,
ld.gold seems to work fine:
```
address@hidden:~/linkerbug$ cat test.c
#include <stdio.h>
int main(void) {
printf("Hello World");
}
address@hidden:~/linkerbug$ gcc -shared -mcmodel=large -fno-builtin -c test.c
address@hidden:~/linkerbug$ gcc -Wl,-rpath,/lib64 -m64 -Wl,--start-group test.o
-Wl,--end-group
/usr/bin/ld: test.o(.text+0x36): unresolvable R_X86_64_PLTOFF64 relocation
against symbol `printf@@GLIBC_2.2.5'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
address@hidden:~/linkerbug$ sudo cp -a /usr/bin/ld.gold /usr/bin/ld
address@hidden:~/linkerbug$ gcc -Wl,-rpath,/lib64 -m64 -Wl,--start-group test.o
-Wl,--end-group
address@hidden:~/linkerbug$ #worked
```
--
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 <=
- [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, 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, 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