xref: /netbsd-src/external/cddl/osnet/usr.bin/ctfmerge/ctfmerge.1 (revision 6cf6fe02a981b55727c49c3d37b0d8191a98c0ee)
1.\" $NetBSD: ctfmerge.1,v 1.2 2013/01/19 01:22:13 wiz Exp $
2.\"
3.\" Copyright (c) 2010 The FreeBSD Foundation
4.\" All rights reserved.
5.\"
6.\" This software was developed by Rui Paulo under sponsorship from the
7.\" FreeBSD Foundation.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in the
16.\"    documentation and/or other materials provided with the distribution.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28.\" SUCH DAMAGE.
29.\"
30.\" $FreeBSD: src/cddl/usr.bin/ctfmerge/ctfmerge.1,v 1.1 2010/08/11 18:00:45 rpaulo Exp $
31.\"
32.Dd July 7, 2010
33.Dt CTFMERGE 1
34.Os
35.Sh NAME
36.Nm ctfmerge
37.Nd merge several CTF data sections into one
38.Sh SYNOPSIS
39.Nm
40.Op Fl fgstv
41.Fl L Ar labelenv
42.Fl l Ar label
43.Fl o Ar outfile
44.Ar file ...
45.Nm
46.Op Fl fgstv
47.Op Fl D Ar uniqlabel
48.Fl d Ar uniqfile
49.Fl L Ar labelenv
50.Fl l Ar label
51.Fl o Ar outfile
52.Ar file ...
53.Nm
54.Op Fl fgstv
55.Fl L Ar labelenv
56.Fl l Ar label
57.Fl o Ar outfile
58.Fl w Ar withfile
59.Ar file ...
60.Nm
61.Op Fl g
62.Fl c Ar srcfile
63.Ar destfile
64.Sh DESCRIPTION
65The
66.Nm
67utility merges several CTF data sections from several files into one
68output file, unifying common data.
69.Pp
70The following options are available:
71.Bl -tag -width indent
72.It Fl c Ar srcfile Ar destfile
73Copy CTF data from
74.Ar srcfile
75into
76.Ar destfile .
77.It Fl D Ar uniqlabel
78Uniquify against label
79.Ar uniqlabel .
80.It Fl d Ar uniqfile
81Uniquify against
82.Ar uniqfile .
83.It Fl f
84Match global symbols to global CTF data.
85.It Fl g
86Don't delete the original debugging sections.
87.It Fl L Ar labelenv
88Instructs
89.Nm
90to read the label from the environment variable
91.Ar labelenv .
92.It Fl l Ar label
93Sets the label as
94.Ar label .
95.It Fl o Ar outfile
96Use
97.Ar outfile
98to store the merged CTF data.
99.It Fl s
100Use the .dynsym ELF section instead of the .symtab ELF section.
101.It Fl t
102Make sure that all object files have a CTF section.
103.It Fl v
104Enable verbose mode.
105.It Fl w Ar withfile
106Additive merge with
107.Ar withfile .
108.El
109.Sh EXIT STATUS
110.Ex -std
111.Sh SEE ALSO
112.Xr ctfconvert 1 ,
113.Xr ctfdump 1
114.Sh HISTORY
115The
116.Nm
117utility first appeared in
118.Fx 7.0 .
119.Sh AUTHORS
120The CTF utilities came from OpenSolaris.
121