[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/17689] New: PIE copy relocations handling broken with ld.bfd
From: |
markus at trippelsdorf dot de |
Subject: |
[Bug ld/17689] New: PIE copy relocations handling broken with ld.bfd |
Date: |
Tue, 09 Dec 2014 15:22:28 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17689
Bug ID: 17689
Summary: PIE copy relocations handling broken with ld.bfd
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: hjl.tools at gmail dot com
Reporter: markus at trippelsdorf dot de
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64237
% cat nscd.i
extern int program_invocation_name;
extern void fn2(int, int);
void
fn1() { fn2(0, program_invocation_name); }
% gcc -fuse-ld=bfd -O2 -pie -fPIE nscd.i
/usr/lib/x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/home/trippels/bin/ld.bfd: /home/trippels/tmp/ccAUYBy5.o: relocation
R_X86_64_PC32 against undefined symbol `program_invocation_name@@GLIBC_2.2.5'
can not be used when making a shared object; recompile with -fPIC
Gold is fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/17689] New: PIE copy relocations handling broken with ld.bfd,
markus at trippelsdorf dot de <=