From f795e658eba16212cb63cbb1d726a075628e3a4c Mon Sep 17 00:00:00 2001 From: rie Date: Wed, 5 Dec 2007 17:05:21 -0800 Subject: 6637894 cw needs more flexibility with -xF options --- usr/src/tools/cw/cw.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr/src') diff --git a/usr/src/tools/cw/cw.c b/usr/src/tools/cw/cw.c index effe129dd5..aaf86f6889 100644 --- a/usr/src/tools/cw/cw.c +++ b/usr/src/tools/cw/cw.c @@ -114,7 +114,8 @@ * -xcrossfile[=] Enable optimization and inlining across source files, * n={0|1} * -xe Perform only syntax/semantic checking, no code generation - * -xF Compile for later mapfile reordering + * -xF Compile for later mapfile reordering or unused section + * elimination * -xhelp= Display on-line help information f(flags, readme, errors) * -xildoff Cancel -xildon * -xildon Enable use of the incremental linker, ild @@ -1237,8 +1238,12 @@ do_gcc(cw_ictx_t *ctx) error(arg); break; case 'F': - /* compile for mapfile reordering -- ignore */ - if (strcmp(arg, "-xF") == 0) + /* + * Compile for mapfile reordering, or unused + * section elimination, syntax can be -xF or + * more complex, like -xF=%all -- ignore. + */ + if (strncmp(arg, "-xF", 3) == 0) break; error(arg); break; -- cgit v1.2.3