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>
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.
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