summaryrefslogtreecommitdiff
path: root/usr.sbin/crunchgen/crunchgen.8
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/crunchgen/crunchgen.8')
-rw-r--r--usr.sbin/crunchgen/crunchgen.820
1 files changed, 12 insertions, 8 deletions
diff --git a/usr.sbin/crunchgen/crunchgen.8 b/usr.sbin/crunchgen/crunchgen.8
index 3c37ebf0e88..1abfe9b0f31 100644
--- a/usr.sbin/crunchgen/crunchgen.8
+++ b/usr.sbin/crunchgen/crunchgen.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: crunchgen.8,v 1.2 2008/08/23 07:24:06 jmc Exp $
+.\" $OpenBSD: crunchgen.8,v 1.3 2008/11/24 17:23:26 drahn Exp $
.\"
.\"
.\" Copyright (c) 1994 University of Maryland
@@ -25,7 +25,7 @@
.\" Computer Science Department
.\" University of Maryland at College Park
.\"
-.Dd $Mdocdate: August 23 2008 $
+.Dd $Mdocdate: November 24 2008 $
.Dt CRUNCHGEN 8
.Os
.Sh NAME
@@ -34,7 +34,7 @@
.Sh SYNOPSIS
.Nm crunchgen
.Bk -words
-.Op Fl Efq
+.Op Fl EfMq
.Op Fl c Ar c-file-name
.Op Fl D Ar src-root
.Op Fl e Ar exec-file-name
@@ -113,8 +113,8 @@ Assume that relative source directory specifications begin with
.Ar src-root .
.It Fl E
Don't prepend stub names with an underscore.
-Used for architectures that don't have underscore prepended to symbol names.
-Example mips ELF.
+Used for architectures that don't have underscore prepended to symbol names,
+such as ELF architectures.
.It Fl e Ar exec-file-name
Set crunched binary executable file name to
.Ar exec-file-name .
@@ -125,9 +125,10 @@ Flush cache.
Forces the recalculation of cached parameters.
.It Fl h
Hide all unnecessary symbols.
-Note that the ELF version of
-.Fl h
-mangles the symbol table beyond recognition.
+Note that this is done on some ELF architectures by marking the symbol
+local, while the
+.Fl M
+option causes it to mangle the symbol name to hide the symbol.
It is therefore not advisable to try to run
.Xr nm 1
on a crunched object file.
@@ -136,6 +137,9 @@ and how some architectures use the symbol attributes for their GOT build.
.It Fl L Ar lib-dir
Try to obtain libraries from
.Ar lib-dir .
+.It Fl M
+On ELF architectures mangle the symbol instead of marking it global;
+necessary for some architectures due to GOT usage.
.It Fl m Ar makefile-name
Set output Makefile name to
.Ar makefile-name .