Changeset View
Changeset View
Standalone View
Standalone View
contrib/elftoolchain/elfcopy/strip.1
Show All 17 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" 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 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $Id: strip.1 3642 2018-10-14 14:24:28Z jkoshy $ | .\" $Id: strip.1 3642 2018-10-14 14:24:28Z jkoshy $ | ||||
.\" | .\" | ||||
.Dd September 17, 2011 | .Dd July 23, 2019 | ||||
.Dt STRIP 1 | .Dt STRIP 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm strip | .Nm strip | ||||
.Nd discard information from ELF objects | .Nd discard information from ELF objects | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl d | Fl g | Fl S | Fl -strip-debug | .Op Fl d | Fl g | Fl S | Fl -strip-debug | ||||
Show All 27 Lines | |||||
.It Fl h | Fl -help | .It Fl h | Fl -help | ||||
Print a help message and exit. | Print a help message and exit. | ||||
.It Fl -only-keep-debug | .It Fl -only-keep-debug | ||||
Remove all content except that which would be used for debugging. | Remove all content except that which would be used for debugging. | ||||
.It Fl o Ar outputfile | Fl -output-file= Ns Ar outputfile | .It Fl o Ar outputfile | Fl -output-file= Ns Ar outputfile | ||||
Write the stripped object to file | Write the stripped object to file | ||||
.Ar outputfile . | .Ar outputfile . | ||||
The default behaviour is to modify objects in place. | The default behaviour is to modify objects in place. | ||||
When this argument is used, only one input file may be specified. | |||||
.It Fl p | Fl -preserve-dates | .It Fl p | Fl -preserve-dates | ||||
Preserve the object's access and modification times. | Preserve the object's access and modification times. | ||||
.It Fl s | Fl -strip-all | .It Fl s | Fl -strip-all | ||||
Remove all symbols. | Remove all symbols. | ||||
.It Fl -strip-unneeded | .It Fl -strip-unneeded | ||||
Remove all symbols not needed for further relocation processing. | Remove all symbols not needed for further relocation processing. | ||||
.It Fl w | Fl -wildcard | .It Fl w | Fl -wildcard | ||||
Use shell-style patterns to name symbols. | Use shell-style patterns to name symbols. | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |