RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1582602 - ld should allow "lea foo@GOT, %ecx" [rhel-7.5.z]
Summary: ld should allow "lea foo@GOT, %ecx" [rhel-7.5.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.6
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
Vladimír Slávik
URL:
Whiteboard:
Depends On: 1573872
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-25 17:25 UTC by Oneata Mircea Teodor
Modified: 2021-09-09 14:15 UTC (History)
12 users (show)

Fixed In Version: binutils-2.27-28.base.el7_5.1
Doc Type: Bug Fix
Doc Text:
The "ld" linker based on the BFD library was too restrictive in its handling of a special form of the Load Effective Address (LEA) instruction in the AMD64 and Intel 64 architectures when building a shared library. As a consequence, the linker rejected valid code with an error message about an invalid relocation. The linker has been modified to handle addressing mode correctly. As a result, valid code that uses this instruction is accepted.
Clone Of: 1573872
Environment:
Last Closed: 2018-06-26 16:52:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3451312 0 None None None 2018-05-25 17:26:01 UTC
Red Hat Knowledge Base (Solution) 3452571 0 None None None 2018-05-25 17:26:01 UTC
Red Hat Product Errata RHBA-2018:1994 0 None None None 2018-06-26 16:52:42 UTC
Sourceware 21168 0 None None None 2019-04-03 06:55:33 UTC

Description Oneata Mircea Teodor 2018-05-25 17:25:55 UTC
This bug has been copied from bug #1573872 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 8 Nick Clifton 2018-05-29 15:14:38 UTC
Update N-V-R to use correct z-stream syntax.

Comment 9 Miloš Prchlík 2018-06-05 06:51:46 UTC
Verified with build binutils-2.27-28.base.el7_5.1.x86_64, using the provided reproducer.

[root@sheep-30 ~]# gcc -B./ -m32 -c -o x.o x.S
[root@sheep-30 ~]# ld -melf_i386 -shared -o libx.so x.o
ld: x.o: direct GOT relocation R_386_GOT32 against `foo' without base register can not be used when making a shared object
ld: final link failed: Bad value
[root@sheep-30 ~]# 

vs.

[root@sheep-30 ~]# gcc -B./ -m32 -c -o x.o x.S
[root@sheep-30 ~]# ld -melf_i386 -shared -o libx.so x.o
[root@sheep-30 ~]#

Comment 14 errata-xmlrpc 2018-06-26 16:52:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:1994


Note You need to log in before you can comment on or make changes to this bug.