]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ld.so.8: tfix: Correct linker option name
authorFangrui Song <maskray@google.com>
Sun, 16 Jul 2023 18:22:27 +0000 (11:22 -0700)
committerAlejandro Colomar <alx@kernel.org>
Sun, 16 Jul 2023 21:27:45 +0000 (23:27 +0200)
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>
man8/ld.so.8

index 1c9a13f566214692d3f2a46acd4abc05eff7a455..351913bd8b3473b6d8b62b45e2a232817c1b5447 100644 (file)
@@ -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