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)
commitf437cc4d757ae87ba90a0e6ee995e1aadade18a6
tree27241644e74b57e015a6c8e0286afc453945cce3
parentf9fbeee689f541eef2bc6780898dd8810490c42d
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