public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ld.so.8: Correct linker option name
@ 2023-07-16 18:22 Fangrui Song
  2023-07-16 21:29 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Fangrui Song @ 2023-07-16 18:22 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man, Fangrui Song

The linker option that sets the DF_1_NODEFLIB flag is -z nodefaultlib.
-z nodeflib is undefined.

```
% 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>
--
Changes from v1:

* Improve commit message
---
 man8/ld.so.8 | 4 ++--
 1 file 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
-- 
2.41.0.455.g037347b96a-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-16 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16 18:22 [PATCH v2] ld.so.8: Correct linker option name Fangrui Song
2023-07-16 21:29 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox