Backport fix for PR 17704 from upstream. submit/tizen_base/20170412.005421 tizen_4.0.m1_release
authorGergely Nagy <ngg@tresorit.com>
Mon, 5 Dec 2016 14:42:16 +0000 (14:42 +0000)
committerSlava Barinov <v.barinov@samsung.com>
Mon, 27 Mar 2017 11:05:44 +0000 (14:05 +0300)
commit43e3764215270b4515b6ba3e716535e07918da40
tree77748d391e3e2b7505d8fd8ea83ec31c195a7edd
parent2b741dd730288101ecfe68c5f2270554fd0e48f5
Backport fix for PR 17704 from upstream.

This fix keeps the section with the highest alignment when folding sections with ICF.

PR gold/17704
* icf.cc (match_sections): Add new parameter section_addraligns.
Check section alignment and keep the section with the strictest
alignment.
(find_identical_sections): New local variable section_addraligns.
Store each section's alignment.
* Makefile.in: Regenerate.
* testsuite/pr17704a_test.s: New file.
* testsuite/Makefile.am (pr17704a_test): New test.
* testsuite/Makefile.in: Regenerate.

Change-Id: I9b8b74cabefe5dd551bfa292e1e2df7aa9ea2e85
Signed-off-by: Pavel Kopyl <p.kopyl@samsung.com>
gold/ChangeLog
gold/Makefile.in
gold/icf.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/pr17704a_test.s [new file with mode: 0644]