1*656f49f8SEd Maste.\" Copyright 1997 John-Mark Gurney. All rights reserved. 2d8000daaSEd Maste.\" 3d8000daaSEd Maste.\" Redistribution and use in source and binary forms, with or without 4d8000daaSEd Maste.\" modification, are permitted provided that the following conditions 5d8000daaSEd Maste.\" are met: 6d8000daaSEd Maste.\" 1. Redistributions of source code must retain the above copyright 7d8000daaSEd Maste.\" notice, this list of conditions and the following disclaimer. 8d8000daaSEd Maste.\" 2. Redistributions in binary form must reproduce the above copyright 9d8000daaSEd Maste.\" notice, this list of conditions and the following disclaimer in the 10d8000daaSEd Maste.\" documentation and/or other materials provided with the distribution. 11d8000daaSEd Maste.\" 12*656f49f8SEd Maste.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' 13d8000daaSEd Maste.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14d8000daaSEd Maste.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 15d8000daaSEd Maste.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 16d8000daaSEd Maste.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 17d8000daaSEd Maste.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 18d8000daaSEd Maste.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 19d8000daaSEd Maste.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 20d8000daaSEd Maste.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 21d8000daaSEd Maste.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 22d8000daaSEd Maste.\" SUCH DAMAGE. 23d8000daaSEd Maste.\" 24d8000daaSEd Maste.\" $FreeBSD: src/usr.bin/brandelf/brandelf.1,v 1.17 2007/03/09 14:36:18 ru Exp $ 25*656f49f8SEd Maste.\" $Id: brandelf.1 3235 2015-07-31 16:44:47Z emaste $ 26d8000daaSEd Maste.\" 27d8000daaSEd Maste.Dd October 27, 2014 28d8000daaSEd Maste.Dt BRANDELF 1 29d8000daaSEd Maste.Os 30d8000daaSEd Maste.Sh NAME 31d8000daaSEd Maste.Nm brandelf 32d8000daaSEd Maste.Nd mark an ELF binary for a specific ABI 33d8000daaSEd Maste.Sh SYNOPSIS 34d8000daaSEd Maste.Nm 35d8000daaSEd Maste.Op Fl V | Fl -version 36d8000daaSEd Maste.Op Fl f Ar ELF_ABI_number 37d8000daaSEd Maste.Op Fl h | Fl -help 38d8000daaSEd Maste.Op Fl l 39d8000daaSEd Maste.Op Fl t Ar brand 40d8000daaSEd Maste.Op Fl v 41d8000daaSEd Maste.Ar 42d8000daaSEd Maste.Sh DESCRIPTION 43d8000daaSEd MasteThe 44d8000daaSEd Maste.Nm 45d8000daaSEd Masteutility marks an ELF binary to be run under a certain ABI. 46d8000daaSEd Maste.Pp 47d8000daaSEd MasteThe options are as follows: 48d8000daaSEd Maste.Bl -tag -width indent 49d8000daaSEd Maste.It Fl f Ar ELF_ABI_number 50d8000daaSEd MasteForces branding with the supplied ELF ABI number. 51d8000daaSEd MasteIncompatible with the 52d8000daaSEd Maste.Fl t 53d8000daaSEd Masteoption. 54d8000daaSEd MasteThese values are assigned by SCO/USL. 55d8000daaSEd Maste.It Fl h | Fl -help 56d8000daaSEd MastePrint a usage message and exit. 57d8000daaSEd Maste.It Fl l 58d8000daaSEd MasteWrites the list of all known ELF types to standard output. 59d8000daaSEd Maste.It Fl t Ar brand 60d8000daaSEd MasteBrands the given ELF binaries to be of the ABI specified by argument 61d8000daaSEd Maste.Ar brand . 62d8000daaSEd MasteSupported ABIs include 63d8000daaSEd Maste.Dq Li 86Open , 64d8000daaSEd Maste.Dq Li AIX , 65d8000daaSEd Maste.Dq Li ARM , 66d8000daaSEd Maste.Dq Li AROS , 67d8000daaSEd Maste.Dq Li FreeBSD , 68d8000daaSEd Maste.Dq Li GNU , 69d8000daaSEd Maste.Dq Li HP/UX , 70d8000daaSEd Maste.Dq Li Hurd , 71d8000daaSEd Maste.Dq Li IRIX , 72d8000daaSEd Maste.Dq Li Linux 73d8000daaSEd Maste(an alias for 74d8000daaSEd Maste.Dq Li GNU ) , 75d8000daaSEd Maste.Dq Li Modesto , 76d8000daaSEd Maste.Dq Li NSK , 77d8000daaSEd Maste.Dq Li NetBSD , 78d8000daaSEd Maste.Dq Li None , 79d8000daaSEd Maste.Dq Li OpenBSD , 80d8000daaSEd Maste.Dq Li OpenVMS , 81d8000daaSEd Maste.Dq Li Standalone , 82d8000daaSEd Maste.Dq Li SVR4 83d8000daaSEd Maste(an alias for 84d8000daaSEd Maste.Dq Li None ) , 85d8000daaSEd Maste.Dq Li Solaris 86d8000daaSEd Masteand 87d8000daaSEd Maste.Dq Li Tru64 . 88d8000daaSEd Maste.It Fl v 89d8000daaSEd MasteThis option is accepted for compatibility with other versions of 90d8000daaSEd Maste.Nm , 91d8000daaSEd Mastebut is otherwise ignored. 92d8000daaSEd Maste.It Fl V | Fl -version 93d8000daaSEd MastePrint a version identifier and exit. 94d8000daaSEd Maste.El 95d8000daaSEd Maste.Pp 96d8000daaSEd MasteIf the options 97d8000daaSEd Maste.Fl f Ar ELF_ABI_number 98d8000daaSEd Masteor 99d8000daaSEd Maste.Fl t Ar brand 100d8000daaSEd Mastewere specified, 101d8000daaSEd Maste.Nm 102d8000daaSEd Mastewill brand the files named by command-line arguments 103d8000daaSEd Maste.Ar 104d8000daaSEd Masteto be of type 105d8000daaSEd Maste.Ar ELF_ABI_number 106d8000daaSEd Masteor 107d8000daaSEd Maste.Ar brand 108d8000daaSEd Masterespectively. 109d8000daaSEd Maste.Pp 110d8000daaSEd MasteIf neither of the 111d8000daaSEd Maste.Fl f 112d8000daaSEd Masteor 113d8000daaSEd Maste.Fl t 114d8000daaSEd Masteoptions were specified, 115d8000daaSEd Maste.Nm 116d8000daaSEd Mastewill display the current branding for the files named by the arguments 117d8000daaSEd Maste.Ar . 118d8000daaSEd Maste.Sh EXIT STATUS 119d8000daaSEd MasteExit status is 0 on success, and 1 if the command 120d8000daaSEd Mastefails if a file does not exist, is too short, fails to brand properly, 121d8000daaSEd Masteor the brand requested is not one of the known types and the 122d8000daaSEd Maste.Fl f 123d8000daaSEd Masteoption is not set. 124d8000daaSEd Maste.Sh EXAMPLES 125d8000daaSEd MasteThe following is an example of a typical usage 126d8000daaSEd Masteof the 127d8000daaSEd Maste.Nm 128d8000daaSEd Mastecommand: 129d8000daaSEd Maste.Bd -literal -offset indent 130d8000daaSEd Mastebrandelf file 131d8000daaSEd Mastebrandelf -t GNU file 132d8000daaSEd Maste.Ed 133d8000daaSEd Maste.Sh SEE ALSO 134d8000daaSEd Maste.Rs 135d8000daaSEd Maste.%A The Santa Cruz Operation, Inc. 136d8000daaSEd Maste.%T System V Application Binary Interface 137d8000daaSEd Maste.%D April 29, 1998 (DRAFT) 138d8000daaSEd Maste.%O http://www.sco.com/developer/devspecs/ 139d8000daaSEd Maste.Re 140d8000daaSEd Maste.Sh HISTORY 141d8000daaSEd MasteThe 142d8000daaSEd Maste.Nm 143d8000daaSEd Mastemanual page first appeared in 144d8000daaSEd Maste.Fx 2.2 . 145d8000daaSEd Maste.Sh AUTHORS 146d8000daaSEd MasteThis manual page was written by 147*656f49f8SEd Maste.An John-Mark Gurney Aq Mt jmg@FreeBSD.org . 148