Changeset View
Changeset View
Standalone View
Standalone View
head/tools/tools/controlelf/controlelf.1
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
.\" Copyright 2019 The FreeBSD Foundation. | |||||
.\" | |||||
.\" This software was developed by Bora Ozarslan under sponsorship from | |||||
.\" the FreeBSD Foundation. | |||||
.\" | |||||
.\" Redistribution and use in source and binary forms, with or without | |||||
.\" modification, are permitted provided that the following conditions | |||||
.\" are met: | |||||
.\" 1. Redistributions of source code must retain the above copyright | |||||
.\" notice, this list of conditions and the following disclaimer. | |||||
.\" 2. Redistributions in binary form must reproduce the above copyright | |||||
.\" notice, this list of conditions and the following disclaimer in the | |||||
.\" documentation and/or other materials provided with the distribution. | |||||
.\" | |||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' | |||||
.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
.\" SUCH DAMAGE. | |||||
.\" | |||||
.\" $FreeBSD$ | |||||
.\" | |||||
.Dd February 21, 2019 | |||||
.Dt CONTROLELF 1 | |||||
.Os | |||||
.Sh NAME | |||||
.Nm controlelf | |||||
.Nd change an ELF binary's control features | |||||
.Sh SYNOPSIS | |||||
.Nm | |||||
.Op Fl h | Fl -help | |||||
.Op Fl l | |||||
.Op Fl e Ar featurelist | |||||
.Ar | |||||
.Sh DESCRIPTION | |||||
The | |||||
.Nm | |||||
utility modifies an ELF binary to change it's control features. | |||||
.Pp | |||||
The options are as follows: | |||||
.Bl -tag -width indent | |||||
.It Fl h | Fl -help | |||||
Print a usage message and exit. | |||||
.It Fl l | |||||
Writes the list of all known ELF types to standard output. | |||||
.It Fl e Ar featurelist | |||||
Edit features from the given comma separated list | |||||
.Ar featurelist . | |||||
.Ar featurelist | |||||
starts with one of the three modes: | |||||
.Dq Li + | |||||
to turn on the features, | |||||
.Dq Li - | |||||
to turn off the features, | |||||
.Dq Li = | |||||
to only turn on the given features. | |||||
Followed by a comma separated features. | |||||
.El | |||||
.Pp | |||||
If | |||||
.Fl e , | |||||
option wasn't specified, | |||||
.Nm | |||||
will display the current control features for the files named by the arguments | |||||
.Ar . | |||||
.Sh EXIT STATUS | |||||
Exit status is 0 on success, and 1 if the command | |||||
fails if a file does not exist, is too short, | |||||
or fails to find or edit features note. | |||||
.Sh EXAMPLES | |||||
The following is an example of a typical usage | |||||
of the | |||||
.Nm | |||||
command: | |||||
.Bd -literal -offset indent | |||||
controlelf file | |||||
controlelf -e +aslr file | |||||
.Ed | |||||
.Sh HISTORY | |||||
The | |||||
.Nm | |||||
manual page first appeared in | |||||
.Fx 13.0 . | |||||
.Sh AUTHORS | |||||
This manual page was written by | |||||
.An Bora Ozarslan Mt borako.ozarslan@gmail.com . |