]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.bin/brandelf/brandelf.1
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.bin / brandelf / brandelf.1
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 John-Mark Gurney 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 February 6, 1997
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
39 The
40 .Nm
41 utility marks an ELF binary to be run under a certain ABI for
42 .Fx .
43 .Pp
44 The options are as follows:
45 .Bl -tag -width indent
46 .It Fl f Ar ELF_ABI_number
47 Forces branding with the supplied ELF ABI number.
48 Incompatible with the
49 .Fl t
50 option.
51 These values are assigned by SCO/USL.
52 .It Fl l
53 Writes the list of all known ELF types to the standard error.
54 .It Fl v
55 Turns on verbose output.
56 .It Fl t Ar string
57 Brands the given ELF binaries to be of the
58 .Ar string
59 ABI type.
60 Currently supported ABIs are
61 .Dq Li FreeBSD ,
62 .Dq Li Linux ,
63 and
64 .Dq Li SVR4 .
65 .It Ar file
66 If
67 .Fl t Ar string
68 is given it will brand
69 .Ar file
70 to be of type
71 .Ar string ,
72 otherwise it will simply display the branding of
73 .Ar file .
74 .El
75 .Sh EXIT STATUS
76 Exit status is 0 on success, and 1 if the command
77 fails if a file does not exist, is too short, fails to brand properly,
78 or the brand requested is not one of the known types and the
79 .Fl f
80 option is not set.
81 .Sh EXAMPLES
82 The following is an example of a typical usage
83 of the
84 .Nm
85 command:
86 .Bd -literal -offset indent
87 brandelf file
88 brandelf -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/developer/devspecs/
96 .Re
97 .Sh HISTORY
98 The
99 .Nm
100 manual page first appeared in
101 .Fx 2.2 .
102 .Sh AUTHORS
103 This manual page was written by
104 .An John-Mark Gurney Aq gurney_j@efn.org .