[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/24025] New: --relax and GOTPCRELX for relocatables
From: |
nruslan_devel at yahoo dot com |
Subject: |
[Bug ld/24025] New: --relax and GOTPCRELX for relocatables |
Date: |
Sat, 22 Dec 2018 16:47:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24025
Bug ID: 24025
Summary: --relax and GOTPCRELX for relocatables
Product: binutils
Version: 2.30
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: nruslan_devel at yahoo dot com
Target Milestone: ---
One potential scenario is when code is compiled with -fpic -fvisibility=hidden
in multiple relocatable files. Then these files are combined together into a
single relocatable with '-r'.
I was wondering why ld does not allow to replace R_X86_64_GOTPCRELX to local
direct calls (i.e., especially for functions found in the same section in the
final relocatable object). Similarly for R_X86_64_REX_GOTPCRELX
When I run --relax -r, the linker fails with this error:
ld: --relax and -r may not be used together
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/24025] New: --relax and GOTPCRELX for relocatables,
nruslan_devel at yahoo dot com <=