manipulate the comment section of an object file
mcs [-b format ] [-a string]
[-c] [-d] [-n
name] [-p] [-V] file . . .
command is used to manipulate a section, by default the
section, in an object file.
must be given one or more of the options described below.
It takes each of the options given and applies them in order
to each file.
If the input file is an archive (see
the archive is treated as a set of individual files.
if the -a option is specified, the string is appended to the
comment section of each
object file in the archive;
if the archive member is not an object file,
then it is left unchanged.
mcs can manipulate both ELF and COFF files.
mcs scans each input file to determine
its file format and executes the appropriate binary.
The file format of the first module in an archive library is used
as the file format for all modules in that library.
Use option -b
to force mcs to use a particular file format.
The following options are available.
Do not scan input object files. Use format
as the file format for
format can be
any one of elf, coff and
ibcs2. The case of format is not important.
Invoke /usr/ccs/bin/coff/mcs and treat all
file arguments as COFF files.
This option provides
full backward compatibility.
if any file or module in a file is in
Invoke /usr/ccs/bin/elf/mcs and treat all
file arguments as ELF files.
Add to, delete, print, and compress the contents of a
section in an
object file, and only print the contents of a
section in a COFF object file.
Invoke /usr/ccs/bin/coff/mcs to treat all
file arguments as COFF files.
to the comment section of the
contains embedded blanks,
it must be enclosed in quotation marks.
Compress the contents of the comment section of the
All duplicate entries are removed.
The ordering of the remaining entries is not disturbed.
Delete the contents of the comment section from the
The section header for the comment section is also removed.
Specify the name of the comment section to access
if other than
deals with the section named
This option can be used to specify another section.
Print the contents of the comment section on the standard output.
Each section printed is tagged by the
name of the file from which it was extracted, using the format
for archive files
and filename: for other files.
Print, on standard error, the version number of
is executed on an archive file
the archive symbol table will be removed, unless only the
option has been specified.
The archive symbol table must be restored by executing the
command with the
option before the archive can be linked by the
will produce warning messages when this
Characters from supplementary code sets can be used in
Comments using characters from supplementary code sets can be
specified with the -a option.
mcs -p file # Print file's comment section
mcs -a string file # Append string to file's comment section
cannot add to, delete, or compress the contents of a section
that is contained in a segment.
The section name specified in name with the
-n option must contain
ASCII characters only.
but can be redefined by setting the environment variable
is an extension of AT&T System V
that is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003