This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Do not crash on MIPS if there is no object files in input.
ClosedPublic

Authored by grimar on Oct 4 2016, 7:28 AM.

Details

Summary

If we have input without object files, for example if we have only .so
code will crash in
checkFlags(), getPicFlags(), getArchFlags() functions.

Patch fixes the issue.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 73476.Oct 4 2016, 7:28 AM
grimar retitled this revision from to [ELF] - Do not crash on MIPS if there is no object files in input..
grimar updated this object.
grimar added reviewers: atanasyan, ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
atanasyan accepted this revision.Oct 4 2016, 8:18 AM
atanasyan edited edge metadata.

LGTM

Thanks!

This revision is now accepted and ready to land.Oct 4 2016, 8:18 AM
This revision was automatically updated to reflect the committed changes.