summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/check_rtime.1onbld
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2021-12-14 14:54:23 -0500
committerDan McDonald <danmcd@joyent.com>2021-12-14 14:54:23 -0500
commit248c05d8ed6486018047f51692e61e14f4f0a82a (patch)
treec11e3e9071c904556b89e5cd50214f16a4a765ae /usr/src/tools/scripts/check_rtime.1onbld
parent35aece5ce85515ca75710d81cfdb091130e87e5c (diff)
parent532883ab3269bdf14c55e45838bc9ae275d70ed5 (diff)
downloadillumos-joyent-release-20211216.tar.gz
[illumos-gate merge]release-20211216
commit 532883ab3269bdf14c55e45838bc9ae275d70ed5 14285 check_rtime should recommend -fpic not -Kpic commit 0910f6b57d8ca5550c60180007b9cdeaabc88f1b 14284 check_rtime should check kernel modules commit 82d0151a507442720a3aea34c8925041894ab173 14268 kernel modules should be linked -ztype=kmod Conflicts: usr/src/uts/intel/bpf/Makefile usr/src/uts/intel/dld/Makefile usr/src/uts/intel/dls/Makefile usr/src/uts/intel/ipf/Makefile usr/src/uts/intel/iptun/Makefile usr/src/uts/intel/mac/Makefile usr/src/uts/intel/mac_ether/Makefile usr/src/uts/intel/mac_ib/Makefile usr/src/uts/intel/mac_wifi/Makefile usr/src/uts/sparc/bpf/Makefile usr/src/uts/sparc/dld/Makefile usr/src/uts/sparc/dls/Makefile usr/src/uts/sparc/mac/Makefile usr/src/uts/sparc/mac_ether/Makefile usr/src/uts/sparc/mac_ib/Makefile usr/src/uts/sparc/mac_wifi/Makefile usr/src/uts/intel/datafilt/Makefile usr/src/uts/intel/gsqueue/Makefile usr/src/uts/intel/inotify/Makefile usr/src/uts/intel/lx_brand/Makefile usr/src/uts/intel/lx_cgroup/Makefile usr/src/uts/intel/lx_devfs/Makefile usr/src/uts/intel/lx_netlink/Makefile usr/src/uts/intel/lx_proc/Makefile usr/src/uts/intel/lx_sysfs/Makefile usr/src/uts/intel/lx_systrace/Makefile usr/src/uts/intel/lxautofs/Makefile usr/src/uts/intel/lxprocfs/Makefile usr/src/uts/intel/nfp/Makefile usr/src/uts/intel/overlay/Makefile usr/src/uts/intel/smrt/Makefile usr/src/uts/intel/vmxnet/Makefile usr/src/uts/intel/vnd/Makefile usr/src/uts/intel/vxlan/Makefile usr/src/uts/sparc/datafilt/Makefile usr/src/uts/sparc/inotify/Makefile
Diffstat (limited to 'usr/src/tools/scripts/check_rtime.1onbld')
-rw-r--r--usr/src/tools/scripts/check_rtime.1onbld20
1 files changed, 16 insertions, 4 deletions
diff --git a/usr/src/tools/scripts/check_rtime.1onbld b/usr/src/tools/scripts/check_rtime.1onbld
index e6825361ca..bd18cbae79 100644
--- a/usr/src/tools/scripts/check_rtime.1onbld
+++ b/usr/src/tools/scripts/check_rtime.1onbld
@@ -19,7 +19,7 @@
.\"
.\" CDDL HEADER END
.\"
-.Dd February 3, 2020
+.Dd December 3, 2021
.Dt CHECK_RTIME 1ONBLD
.Os
.Sh NAME
@@ -55,13 +55,13 @@ is typically called from
when the
.Fl r
option is in effect.
-In this case the dynamic objects under
+In this case the objects under
the associated
.Em proto area
.Pq Ev $ROOT
are checked.
.Nm check_rtime
-can also be run standalone against any set of dynamic objects.
+can also be run standalone against any set of objects.
.Pp
.Nm check_rtime
uses
@@ -229,7 +229,7 @@ rules from
is the typical reason for having non-pic code in shared objects.
Text relocations are displayed as:
.Pp
-.Dl foo: TEXTREL .dynamic tag <no -Kpic?>
+.Dl foo: TEXTREL .dynamic tag <no -fpic?>
.It
Debugging information is unnecessary in released objects.
Although extensive when compiled
@@ -427,6 +427,14 @@ Changes to the symbols defined by an object, or the versions they belong to,
do not necessarily indicate an error condition, but
provides information that is often useful for gatekeepers to track
changes in a release.
+.Pp
+.Nm check_rtime
+uses
+.Xr elfedit 1
+to verify that relocatable objects which seem likely to be kernel modules were
+linked with the
+.Fl z Ar type=kmod
+flag.
.Sh OPTIONS
The following options are supported:
.Bl -tag -width indent
@@ -572,6 +580,10 @@ Executables that are not required to have non-executable writable
data segments
.It EXEC_STACK
Executables that are not required to have a non-executable stack
+.It KMOD
+Objects that looks like kernel modules but don't have to be linked with the
+.Fl z Ar type=kmod
+flag.
.It NOCRLEALT
Objects that should be skipped when building the alternative dependency
mapping via the