OSDN Git Service

fix option order when invoking children
authorDavid McCullough <davidm@snapgear.com>
Mon, 9 Nov 2009 23:59:26 +0000 (23:59 +0000)
committerDavid McCullough <davidm@snapgear.com>
Mon, 9 Nov 2009 23:59:26 +0000 (23:59 +0000)
commit2788b572a7419b1677e40c6a00e13c7b4e8970e7
tree27241644e74b57e015a6c8e0286afc453945cce3
parent9e2cdadcef2682caef6cfa8088a6b313a879653e
fix option order when invoking children

Poor getopt() implementations as found in many BSD/Darwin systems will
stop processing options after a non-option is encountered.  That means
ld-elf2flt has to be careful to not stick options after non-options when
executing sub children.  In a default setup, it will invoke `elf2flt` with
the output followed by the -a option which subsequently fails:
elf2flt: Can't open '-a': No such file or directory
ld-elf2flt.c