1*9f506526Sjmc.\" $OpenBSD: ctfstrip.1,v 1.5 2017/08/28 10:07:57 jmc Exp $ 2192095f7Smpi.\" 3192095f7Smpi.\" Copyright (c) 2017 Martin Pieuchot 4192095f7Smpi.\" 5192095f7Smpi.\" Permission to use, copy, modify, and distribute this software for any 6192095f7Smpi.\" purpose with or without fee is hereby granted, provided that the above 7192095f7Smpi.\" copyright notice and this permission notice appear in all copies. 8192095f7Smpi.\" 9192095f7Smpi.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10192095f7Smpi.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11192095f7Smpi.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12192095f7Smpi.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13192095f7Smpi.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14192095f7Smpi.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15192095f7Smpi.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16192095f7Smpi.\" 17*9f506526Sjmc.Dd $Mdocdate: August 28 2017 $ 18192095f7Smpi.Dt CTFSTRIP 1 19192095f7Smpi.Os 20192095f7Smpi.Sh NAME 21192095f7Smpi.Nm ctfstrip 22192095f7Smpi.Nd insert a CTF section 23192095f7Smpi.Sh SYNOPSIS 24192095f7Smpi.Nm ctfstrip 25192095f7Smpi.Op Fl S 26192095f7Smpi.Op Fl o Ar outfile 27192095f7Smpi.Ar file 28192095f7Smpi.Sh DESCRIPTION 29192095f7SmpiThe 30192095f7Smpi.Nm 31192095f7Smpiutility generates and inserts a 32192095f7Smpi.Dv .SUNW_ctf 3326588df6Sjmcsection in an 34192095f7Smpi.Xr elf 5 35*9f506526Sjmcfile based on the contents of its existing DWARF debug sections. 36192095f7Smpi.Pp 37192095f7SmpiThe options are as follows: 38192095f7Smpi.Bl -tag -width Ds 39192095f7Smpi.It Fl o Ar outfile 40192095f7SmpiPut the converted output in 41192095f7Smpi.Ar outfile 42192095f7Smpiinstead of replacing 43192095f7Smpi.Ar file . 4426588df6Sjmc.It Fl S 4526588df6SjmcRemove debug sections. 46192095f7Smpi.El 47192095f7Smpi.Sh EXIT STATUS 48192095f7Smpi.Ex -std ctfstrip 49192095f7Smpi.Sh SEE ALSO 50bfe03258Snayden.Xr ctfconv 1 , 51192095f7Smpi.Xr strip 1 , 52192095f7Smpi.Xr elf 5 53