1.\" $OpenBSD: ctfstrip.1,v 1.5 2017/08/28 10:07:57 jmc Exp $ 2.\" 3.\" Copyright (c) 2017 Martin Pieuchot 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: August 28 2017 $ 18.Dt CTFSTRIP 1 19.Os 20.Sh NAME 21.Nm ctfstrip 22.Nd insert a CTF section 23.Sh SYNOPSIS 24.Nm ctfstrip 25.Op Fl S 26.Op Fl o Ar outfile 27.Ar file 28.Sh DESCRIPTION 29The 30.Nm 31utility generates and inserts a 32.Dv .SUNW_ctf 33section in an 34.Xr elf 5 35file based on the contents of its existing DWARF debug sections. 36.Pp 37The options are as follows: 38.Bl -tag -width Ds 39.It Fl o Ar outfile 40Put the converted output in 41.Ar outfile 42instead of replacing 43.Ar file . 44.It Fl S 45Remove debug sections. 46.El 47.Sh EXIT STATUS 48.Ex -std ctfstrip 49.Sh SEE ALSO 50.Xr ctfconv 1 , 51.Xr strip 1 , 52.Xr elf 5 53