summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorrie <none@none>2007-12-05 17:05:21 -0800
committerrie <none@none>2007-12-05 17:05:21 -0800
commitf795e658eba16212cb63cbb1d726a075628e3a4c (patch)
tree594d8b0a08a5878450187b8b7b11ccc620bc411d /usr/src
parent7532080275bea4e88d4b5f1829bf78d49a762a58 (diff)
downloadillumos-joyent-f795e658eba16212cb63cbb1d726a075628e3a4c.tar.gz
6637894 cw needs more flexibility with -xF options
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/tools/cw/cw.c11
1 files changed, 8 insertions, 3 deletions
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[=<n>] 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=<f> 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;