summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/mc68strip.1
blob: 7d02e453eb94eada683c2af14a9c7c99b20a61c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
.TH MC68STRIP 1 "630 MTG"
.SH NAME
mc68strip \- strip symbolic information from MC68000 object file
.SH SYNOPSIS
.B mc68strip
.RB [ \-l ]
.RB [ \-m ]
.RB [ \-x ]
.RB [ \-r ]
.RB [ \-s ]
.if 'mc68'3b' \{\
.RB [ \-f ]
.\}
.RB [ \-V ]
file-names
.SH DESCRIPTION
The 
.I mc68strip
command
strips the symbol table and line number information from
Motorola 68000 object files,
including archives.
Once this has been done, no symbolic debugging access
is available for that file; therefore, this command is
normally run only on production modules that have
been debugged and tested.
.PP
The amount of information stripped from the symbol table
can be controlled by using the following options:
.PP
.TP 9
.BR \-l
Strips line number information only;
does not strip any symbol table information.
.PP
.TP 9
.BR \-m
Strips symbol table information only;
does not strip any relocation information.
Used for 630 MTG applications which need relocation information for downloads,
but do not neccesarily need symbol table information.
This option does not work on archives.
.PP
.TP 9
.B \-x
Does not strip static or external symbol information.
.PP
.TP 9
.B \-r
Resets the relocation indices into the symbol table.
.if 'mc68'3b' \{\
.PP
.TP 9
.B \-f
Removes the relocation information from an executable object file
for all sections not of type COPY. Reset
relocation indices into the symbol table for all retained relocation
information.
.\}
.PP
.TP 9
.B \-s
Resets the line number indices into the symbol table (does not remove).
Resets the relocation indices into the symbol table.
.PP
.TP 9
.B \-V
Prints the version of the mc68strip command executing on the standard error output.
.DT
.br
.PP
If there are any relocation entries in the object file and any symbol
table information is to be stripped,
.I mc68strip
will complain and terminate without stripping
.I file-name
unless the
\f3\-r\f1 or \f3\-m\f1
flags are used.
.PP
If the 
.IR mc68strip
command is executed on a common archive file [see
.IR ar (4)]
the archive symbol table will be removed.  The archive
symbol table must be restored by executing the
.IR mc68ar (1)
command with the 
.B s
option before the archive can be
link edited by the 
.IR mc68ld (1)
command.  
.IR Mc68strip (1)
will instruct the user with appropriate warning messages when this
situation arises.
.PP
The purpose of this command is to reduce the file storage
overhead taken by the object file.
.SH "FILES"
/usr/tmp/mc68str??????
.SH "SEE ALSO"
dmdcc(1),
mc68ar(1),
mc68as(1),
mc68ld(1).
.br
a.out(4), ar(4) in the \f2UNIX System V Programmer's
Reference Manual\f1.
.SH "DIAGNOSTICS"
.TP 9
mc68strip:  name:  cannot open
.br
	if
.I name
cannot be read.
.PP
.TP 9
mc68strip:  name:  bad magic 
.br
	if
.I name
is not a Motorola 68000 object file.
.PP
.TP 9
mc68strip:  name:  relocation entries present; cannot strip 
.br
	if
.I name
contains relocation entries and the
\f3\-r\f1 or \f3\-m\f1
flag is not used,
the symbol table information cannot be stripped.
.PP
.TP 9
mc68strip:  name:  other options set with "m" option 
.br
   	if
other flags are used with the -m option which is mutually exclusive. 
.PP
.TP 9
mc68strip:  "m" option not allowed on archive files 
.br
        if
file name is an archive file.