summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2023-07-16 11:22:27 -0700
committerAlejandro Colomar <alx@kernel.org>2023-07-16 23:27:45 +0200
commit8796622ce83d62eee5d37dfd68896e206866a731 (patch)
treeda68bf2e6afff38ce9e228c105e9f88e090f82ae
parent22a3e2c47bd5c8aa423d4f5b116775c5952b89ab (diff)
ld.so.8: tfix: Correct linker option name
The linker option that sets the DF_1_NODEFLIB flag is -z nodefaultlib. -z nodeflib is invalid. ``` % ld.bfd -m elf_x86_64 -e 0 /dev/null -z nodeflib ld.bfd: warning: -z nodeflib ignored % ld.lld -m elf_x86_64 -e 0 /dev/null -z nodeflib ld.lld: warning: unknown -z value: nodeflib ``` Signed-off-by: Fangrui Song <maskray@google.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man8/ld.so.84
1 files changed, 2 insertions, 2 deletions
diff --git a/man8/ld.so.8 b/man8/ld.so.8
index 1c9a13f56..351913bd8 100644
--- a/man8/ld.so.8
+++ b/man8/ld.so.8
@@ -83,7 +83,7 @@ From the cache file
which contains a compiled list of candidate shared objects previously found
in the augmented library path.
If, however, the binary was linked with the
-.B \-z nodeflib
+.B \-z nodefaultlib
linker option, shared objects in the default paths are skipped.
Shared objects installed in hardware capability directories (see below)
are preferred to other shared objects.
@@ -97,7 +97,7 @@ and then
and then
.IR /usr/lib64 .)
If the binary was linked with the
-.B \-z nodeflib
+.B \-z nodefaultlib
linker option, this step is skipped.
.\"
.SS Dynamic string tokens