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-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils