Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1243559

Summary: [aarch64][binutils] relocation truncated to fit: R_AARCH64_CALL26 (veneers not inserted)
Product: Red Hat Enterprise Linux 7 Reporter: David Abdurachmanov <david.abdurachmanov>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Miloš Prchlík <mprchlik>
Severity: medium Docs Contact: Tomas Capek <tcapek>
Priority: medium    
Version: 7.1CC: dmarlin, jcm, jfeeney, law, mcermak, mnewsome, mprchlik, nickc, ohudlick
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Large and/or high-address programs now link and execute correctly on *AArch64* Previously, incorrect code in the linker could result in incorrect branch stubs being generated. Consequently, programs that were very big or if the programmer coded parts of the program to exist at a very high address, failed to link. The bug has been fixed and the correct kind of branch stub is now selected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:52:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1277314, 1285484, 1297579, 1313485    
Attachments:
Description Flags
Proposed patch none

Description David Abdurachmanov 2015-07-15 19:10:50 UTC
Description of problem:

There are two cases then ld.bfd does not insert veneers on aarch64:
- "the target symbol and relocated place are in separate sections"
- if you are building a shared library and a function call goes through PLT stub. PLT stub ends up outside of +/-128MB range.

Version-Release number of selected component (if applicable):

The problems are present in trunk (last tested July 13) of binutils.

How reproducible:

All the details are in referenced PR in sourceware bugzilla.

Comment 2 David Abdurachmanov 2015-07-21 08:46:12 UTC
Fixes for both issues are now posted for review:

[AArch64] PR18668, Generate long branch veneer if call to plt stub is out of range
https://sourceware.org/ml/binutils/2015-07/msg00137.html

[AArch64] Long branch veneer support far symbol defined by --defsym
https://sourceware.org/ml/binutils/2015-07/msg00210.html

Comment 4 Nick Clifton 2015-11-18 15:22:58 UTC
Created attachment 1096127 [details]
Proposed patch

Once the 7.3 branch is created, this patch can be used to fix this BZ...

Comment 5 Nick Clifton 2016-02-23 17:23:34 UTC
binutils-2.25.1-7.el7 now contains the full patch.

Comment 9 Miloš Prchlík 2016-06-24 07:54:03 UTC
Verified for build binutils-2.25.1-19.base.el7.

Comment 10 Yaakov Selkowitz 2016-07-28 20:37:49 UTC
*** Bug 1360941 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2016-11-04 01:52:32 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://rhn.redhat.com/errata/RHBA-2016-2265.html