This is an archive of the discontinued LLVM Phabricator instance.

Accept sh_entsize = 0.
ClosedPublic

Authored by ruiu on Sep 20 2016, 5:25 PM.

Details

Summary

This surfaced again with Rust. As per bug 30435, rustc creates a
mergeable section with a sh_entsize. It bit us before, too.
So I think we should relax the input check rather than being too picky.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu updated this revision to Diff 72000.Sep 20 2016, 5:25 PM
ruiu retitled this revision from to Accept sh_entsize = 0..
ruiu updated this object.
ruiu added a reviewer: grimar.
ruiu added a subscriber: llvm-commits.
emaste accepted this revision.Sep 20 2016, 8:25 PM
emaste added a reviewer: emaste.
emaste added a subscriber: emaste.

I'm indifferent about moving the multiple of sh_entsize test before SHF_MERGE. LGTM either way.

This revision is now accepted and ready to land.Sep 20 2016, 8:25 PM
This revision was automatically updated to reflect the committed changes.