xref: /freebsd/usr.bin/brandelf/brandelf.1 (revision 1323ec57)
1.\" Copyright 1997 John-Mark Gurney.  All rights reserved.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\"    notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright
9.\"    notice, this list of conditions and the following disclaimer in the
10.\"    documentation and/or other materials provided with the distribution.
11.\"
12.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
13.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22.\" SUCH DAMAGE.
23.\"
24.\" $FreeBSD$
25.\"
26.Dd March 25, 2014
27.Dt BRANDELF 1
28.Os
29.Sh NAME
30.Nm brandelf
31.Nd mark an ELF binary for a specific ABI
32.Sh SYNOPSIS
33.Nm
34.Op Fl lv
35.Op Fl f Ar ELF_ABI_number
36.Op Fl t Ar string
37.Ar
38.Sh DESCRIPTION
39The
40.Nm
41utility marks an ELF binary to be run under a certain ABI for
42.Fx .
43.Pp
44The options are as follows:
45.Bl -tag -width indent
46.It Fl f Ar ELF_ABI_number
47Forces branding with the supplied ELF ABI number.
48Incompatible with the
49.Fl t
50option.
51These values are assigned by SCO/USL.
52.It Fl l
53Writes the list of all known ELF types to the standard error.
54.It Fl v
55Turns on verbose output.
56.It Fl t Ar string
57Brands the given ELF binaries to be of the
58.Ar string
59ABI type.
60Currently supported ABIs are
61.Dq Li FreeBSD ,
62.Dq Li Linux ,
63and
64.Dq Li SVR4 .
65.It Ar file
66If
67.Fl t Ar string
68is given it will brand
69.Ar file
70to be of type
71.Ar string ,
72otherwise it will simply display the branding of
73.Ar file .
74.El
75.Sh EXIT STATUS
76Exit status is 0 on success, and 1 if the command
77fails if a file does not exist, is too short, fails to brand properly,
78or the brand requested is not one of the known types and the
79.Fl f
80option is not set.
81.Sh EXAMPLES
82The following is an example of a typical usage
83of the
84.Nm
85command:
86.Bd -literal -offset indent
87brandelf file
88brandelf -t Linux file
89.Ed
90.Sh SEE ALSO
91.Rs
92.%A The Santa Cruz Operation, Inc.
93.%T System V Application Binary Interface
94.%D April 29, 1998 (DRAFT)
95.%U http://www.sco.com/developers/devspecs/
96.Re
97.Sh HISTORY
98The
99.Nm
100manual page first appeared in
101.Fx 2.2 .
102.Sh AUTHORS
103This manual page was written by
104.An John-Mark Gurney Aq Mt jmg@FreeBSD.org .
105