xref: /freebsd/usr.bin/brandelf/brandelf.1 (revision 952d112864d8008aa87278a30a539d888a8493cd)
1.\" Copyright (c) 1997
2.\"	John-Mark Gurney.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. Neither the name of the author nor the names of any co-contributors
13.\"    may be used to endorse or promote products derived from this software
14.\"    without specific prior written permission.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY John-Mark Gurney AND CONTRIBUTORS ``AS IS''
17.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\"
29.Dd February 6, 1997
30.Dt BRANDELF 1
31.Os FreeBSD
32.Sh NAME
33.Nm brandelf
34.Nd mark an ELF binary for a specific ABI
35.Sh SYNOPSIS
36.Nm brandelf
37.Op Fl v
38.Op Fl t Ar string
39.Ar file ...
40.Sh DESCRIPTION
41This command marks an ELF binary to be run under a certain ABI for
42.Tn FreeBSD .
43.Pp
44The options are as follows:
45.Bl -tag -width Fl
46.It Fl v
47turns on verbose reporting
48.It Fl t Ar string
49Brands the given ELF binaries with
50.Ar string
51as the ABI type.  Currently supported ABI's are
52.Dq Tn FreeBSD
53and
54.Dq Linux .
55.It Ar file
56If
57.Fl t Ar string
58is given it will brand
59.Ar file
60with
61.Ar string ,
62otherwise it will simply display the branding of
63.Ar file .
64.El
65.Sh EXAMPLES
66The following is an example of a typical usage
67of the
68.Nm
69command:
70.Pp
71.Dl % brandelf file
72.Dl % brandelf -t Linux file
73.Sh DIAGNOSTICS
74Exit status is 0 on success, and 1 if the command
75fails if a file doesn't exist, is too short, or fails to brand properly.
76.Sh HISTORY
77The
78.Nm
79manual page first appeared in
80.Fx 2.2 .
81.Sh AUTHOR
82This
83manual page was written by John-Mark Gurney
84.Aq gurney_j@efn.org .
85