From: Nick Clifton <nickc@redhat.com>
To: Tom Kacvinsky <tkacvins@gmail.com>, Binutils <binutils@sourceware.org>
Subject: Re: Question about readelf output from shared library built with lld, gold, and bfd linkers
Date: Mon, 21 Nov 2022 15:16:56 +0000 [thread overview]
Message-ID: <43d57592-85f9-f715-f077-113838a5ee44@redhat.com> (raw)
In-Reply-To: <CAG_eJLdvkmQm6qLOZst4RLVcKTLDPpo0aZ4FDz6CQtiO0nFtWQ@mail.gmail.com>
Hi Tom,
>> I assume that you have compared started up times when linking with "-z now"
>> vs "-z lazy" ?
>>
>
> I thought -z lazy was the default, and that if you wanted the equivalent of
> LD_BIND_NOW=1 on the command line, then one would use -z now.
It depends upon the environment. In Fedora (and RHEL) "-z now" is the
default. The reason is program security - lazy binding means that an
attacker might be able to alter the relocations before they are evaluated,
allowing all kinds of unexpected things to happen.
Cheers
Nick
next prev parent reply other threads:[~2022-11-21 15:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-20 16:37 Tom Kacvinsky
2022-11-21 14:14 ` Nick Clifton
2022-11-21 14:51 ` Tom Kacvinsky
2022-11-21 15:16 ` Nick Clifton [this message]
2022-11-21 15:33 ` Tom Kacvinsky
2022-11-21 16:48 ` Nick Clifton
2022-11-21 17:43 ` Tom Kacvinsky
2022-11-22 11:20 ` Nick Clifton
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=43d57592-85f9-f715-f077-113838a5ee44@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sourceware.org \
--cc=tkacvins@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).