Fix PR 17704.
authorGergely Nagy <ngg@tresorit.com>
Fri, 21 Oct 2016 18:08:20 +0000 (11:08 -0700)
committerSriraman Tallam <tmsriram@google.com>
Fri, 21 Oct 2016 18:10:46 +0000 (11:10 -0700)
commitac423761af22f7858a1413cda5df3e1d5e88d4e4
tree48b7febe21373bceb32259e7b5f6a3ee5c2d7680
parentd11261fc63ecbf9f3487be906a4e720b4b20fb42
Fix PR 17704.

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.
* testsuite/pr17704a_test.s: New file.
* testsuite/Makefile.am (pr17704a_test): New test.
* testsuite/Makefile.in: Regenerate.
gold/ChangeLog
gold/icf.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/pr17704a_test.s [new file with mode: 0644]
This page took 0.025789 seconds and 4 git commands to generate.