MCS(1) (Software Generation System Utilities) MCS(1)
NAME
mcs - manipulate the object file comment section
SYNOPSIS
mcs [options] object-files
DESCRIPTION
The mcs command manipulates the comment section in an object
file. It is used to add to, delete, print, and compress the
contents of the .comment section in a UNIX object file. If
the object file is an archive, the file is treated as a set
of individual object files. As a result, if the -a option
is specified, the string is appended to the comment section
of each archive element.
The following options are available.
-a string
Appends string to the comment section of the object
files.
-c Compresses the contents of the comment section. All
duplicate entries are removed. The order of the
remaining entries is not disturbed.
-d Deletes the contents of the comment section from the
object file. Also removes the object-file comment-
section header.
-n name
Specifies the name of the section to access. By
default, mcs deals with the one named .comment. This
option can be used to specify another section.
-p Prints the contents of the comment section on the
standard output. When more than one name is specified,
tags each printed entry with the name of the file from
which it was extracted.
-P Prints the contents of the comment section, tagging
Page 1 May 1989
MCS(1) (Software Generation System Utilities) MCS(1)
each line with the name of the file from which it was
extracted. The format used is ``filename:string.''
EXAMPLES
mcs -p file # Print file's comment section.
mcs -a string file # Append string to file's comment section
SEE ALSO
cpp(1), a.out(4).
Page 2 May 1989