sel_ldr: Add a -q argument to suppress initial warning/diagnostic output.
sel_ldr: Add a -q argument to suppress initial warning/diagnostic output.

This allows testing frameworks to capture stderr of the nexe without being polluted by sel_ldr stderr output.

The -q (quiet) argument is used to guard diagnostic fprintf(stderr, ...) calls in NaClSelLdrMain().
This does an initial getopt pass to look for -q and -l arguments, so that logging and stderr output during the regular getopt pass will respect those flags.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3704
R=bsy@google.com

Review URL: https://codereview.chromium.org/36073012

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@12304 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client