This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Filter out non InputSection members from InputSections
ClosedPublic

Authored by phosek on May 28 2017, 1:25 AM.

Details

Summary

InputSections may contain MergeInputSection members which trigger a segmentation fault when trying to cast them to InputSection.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.May 28 2017, 1:25 AM
ruiu accepted this revision.May 28 2017, 1:55 AM

LGTM

This revision is now accepted and ready to land.May 28 2017, 1:55 AM
ruiu added a comment.May 28 2017, 1:55 AM

Can you add a test

phosek updated this revision to Diff 100661.May 29 2017, 10:17 PM

Added a test case.

This revision was automatically updated to reflect the committed changes.