Ben Gras 298b41b523 libexec: detect short files
if an exec() fails partway through reading in the sections, the target
process is already gone and a defunct process remains. sanity checking
the binary beforehand helps that.

test10 mutilates binaries and exec()s them on purpose; making an exec()
fail cleanly in such cases seems like acceptable behaviour.

fixes test10 on ARM.

Change-Id: I1ed9bb200ce469d4d349073cadccad5503b2fcb0
2013-02-04 12:04:35 +01:00
..
2013-01-14 11:36:26 +01:00
2012-10-30 13:55:42 +01:00
2013-01-14 11:36:26 +01:00
2012-04-09 18:08:26 +02:00
2013-01-14 11:36:26 +01:00
2013-01-17 10:03:58 +01:00
2013-01-17 10:03:58 +01:00
2013-01-14 11:36:26 +01:00
2012-08-03 00:20:34 -07:00
2013-01-14 11:36:26 +01:00
2013-01-25 17:03:06 +00:00
2013-01-17 10:03:58 +01:00
2013-02-04 12:04:35 +01:00
2013-02-04 12:04:35 +01:00
2013-02-04 12:04:35 +01:00
2013-01-17 10:03:58 +01:00