2016-02-05 Sriraman Tallam <tmsriram@google.com>
authorSriraman Tallam <tmsriram@google.com>
Fri, 5 Feb 2016 23:07:45 +0000 (15:07 -0800)
committerSriraman Tallam <tmsriram@google.com>
Fri, 5 Feb 2016 23:07:45 +0000 (15:07 -0800)
commit84d543b7ed93bf6511cdf45791f4f0b717dfb718
tree8eb2c3c3822f5ddf085835cf0f354c6130f49bab
parentc34c98ed62f7f01fa19b1cfb174df942ee47127d
2016-02-05  Sriraman Tallam  <tmsriram@google.com>

* icf.cc (get_rel_addend): New function.
(get_section_contents):  Move merge section addend computation to a
new function.  Ignore negative values for SHT_REL and SHT_RELA addends.
Fix bug to not read past the length of the section.

Fix bug related to addend computation for MERGE sections.
gold/ChangeLog
gold/icf.cc