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-02-04 12:04:35 +01:00
2013-02-04 12:03:46 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2012-07-15 22:30:15 +02:00
2012-07-15 22:30:15 +02:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2012-03-25 21:58:27 +02:00
2013-01-14 11:36:26 +01:00
2012-07-28 20:57:38 +00:00
2013-01-14 11:36:26 +01:00
2010-09-15 14:10:57 +00:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2012-03-25 16:17:10 +02:00
2012-03-25 21:58:14 +02:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2013-01-14 11:36:26 +01:00
2012-07-15 22:30:15 +02:00
2013-01-14 11:36:26 +01:00
2010-06-11 08:16:10 +00:00
2012-03-25 21:58:14 +02:00
2013-01-14 11:36:26 +01:00