public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Fangrui Song <maskray@google.com>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH v2] ld.so.8: Correct linker option name
Date: Sun, 16 Jul 2023 23:29:01 +0200	[thread overview]
Message-ID: <ca7e8fd6-ddd9-9a00-880d-6d3fd11eacd6@kernel.org> (raw)
In-Reply-To: <20230716182227.2226356-1-maskray@google.com>


[-- Attachment #1.1: Type: text/plain, Size: 1497 bytes --]

On 2023-07-16 20:22, Fangrui Song wrote:
> 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>

Hi!

Patch applied.  Thanks!

Alex

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

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2023-07-16 21:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-16 18:22 [PATCH v2] ld.so.8: Correct linker option name Fangrui Song
2023-07-16 21:29 ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca7e8fd6-ddd9-9a00-880d-6d3fd11eacd6@kernel.org \
    --to=alx@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=maskray@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox