Summary: | gold misplaces a relaxed section on AArch64 | ||
---|---|---|---|
Product: | binutils | Reporter: | Igor Kudrin <ikudrin> |
Component: | gold | Assignee: | Cary Coutant <ccoutant> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | ian, shenhan |
Priority: | P2 | ||
Version: | 2.29 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | The fix for the issue |
Description
Igor Kudrin
2017-04-26 10:41:24 UTC
Created attachment 10018 [details]
The fix for the issue
Here is the fix for the issue.
Comment on attachment 10018 [details] The fix for the issue gold/ChangeLog * aarch64.cc (AArch64_relobj::convert_input_section_to_relaxed_section): Set the section offset to -1ULL. (Target_aarch64::relocate_section): Adjust the view in case of a relaxed input section. * testsuite/Makefile.am (pr21430): New test. * testsuite/Makefile.in: Regenerate * testsuite/pr21430.s: New test source file. * testsuite/pr21430.sh: New test script. The master branch has been updated by Cary Coutant <ccoutant@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6bf56e7482e220ff98655b5285736a37dd602c17 commit 6bf56e7482e220ff98655b5285736a37dd602c17 Author: Igor Kudrin <ikudrin@accesssoftek.com> Date: Fri May 12 15:24:32 2017 -0700 Fix misplacement of a relaxed section on AArch64. gold/ChangeLog PR gold/21430 * aarch64.cc (AArch64_relobj::convert_input_section_to_relaxed_section): Set the section offset to -1ULL. (Target_aarch64::relocate_section): Adjust the view in case of a relaxed input section. * testsuite/Makefile.am (pr21430): New test. * testsuite/Makefile.in: Regenerate * testsuite/pr21430.s: New test source file. * testsuite/pr21430.sh: New test script. Fixed on trunk. |