[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/18289] New: Support copy relocation in PIE
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/18289] New: Support copy relocation in PIE |
Date: |
Tue, 21 Apr 2015 13:39:38 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18289
Bug ID: 18289
Summary: Support copy relocation in PIE
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target: i386-elf
This
main:
call __x86.get_pc_thunk.ax
addl $_GLOBAL_OFFSET_TABLE_, %eax
movl $4, address@hidden(%eax)
xorl %eax, %eax
ret
should work with copy relocation in PIE. But we get
address@hidden copyreloc]$ gcc -pie -m32 x.s
/usr/local/bin/ld: /tmp/ccCk6nT6.o: relocation R_386_GOTOFF against undefined
symbol `optopt@@GLIBC_2.0' can not be used when making a shared object
/usr/local/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
address@hidden copyreloc]$
We need to implement x86-64 commit 631d040f80d99b7b993abd77c9d064fa8bccd711
on i386 and handle cases similar to PRs 17689/17827/17847 if needed.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/18289] New: Support copy relocation in PIE,
hjl.tools at gmail dot com <=