llvm-project
llvm-project copied to clipboard
Deduplication of merged input sections causes incorrect relocation
| Bugzilla Link | 36878 |
| Resolution | FIXED |
| Resolved on | Mar 23, 2018 10:56 |
| Version | unspecified |
| OS | Windows XP |
| Attachments | Lit test reproducible |
| CC | @the-edd |
Extended Description
When merged input sections are deduplicated using --icf=all --ignore-data-address-equality, the relocation of the "removed" merged input section is incorrect.
Attached is a lit test that demonstrates this issue.
No, problem. I had a similar fix but I only modified the behaviour of MergeInputSection. I think your change is more general and thus should be better.
Gosh, I am terribly sorry. I just noticed you had assigned the bug to yourself.
That is an awesome testcase. Thanks!
Fixed in r328332.