unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: Fangrui Song <maskray@google.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH] csu: Skip ARCH_SETUP_IREL if _dl_relocate_static_pie applied IRELATIVE relocations [BZ #27164]
Date: Wed, 14 Jul 2021 07:45:00 +0530	[thread overview]
Message-ID: <d3d115cb-ac1c-dd1c-d7b2-35b0414a7201@gotplt.org> (raw)
In-Reply-To: <20210713230639.mkyiijn6v7tlo7fc@google.com>

On 7/14/21 4:36 AM, Fangrui Song wrote:
> Please see the sentence from the first message
> "In addition, this enables a future simplification to GNU ld: we can
> drop a linker script difference between -no-pie and -pie."
> 
> This is the only difference other than image base difference.

I did see the first message and indeed, all messages in the thread 
before asking that question.  Perhaps my wording wasn't specific enough: 
what is the benefit to *users* of having those symbols in dynamic 
binaries?  If the only reason what you mentioned in your first email, 
then this patch proposes to add runtime overhead to make what is 
essentially a cosmetic difference to GNU ld.  That doesn't make sense.

In that context, lld behaviour needs to be changed since it adds symbols 
specifically meant to enable ifunc resolution in non-pie static binaries 
to all generated binaries without any known benefit to end user 
applications.

Siddhesh

  parent reply	other threads:[~2021-07-14  2:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08 22:10 [PATCH] csu: Skip ARCH_SETUP_IREL if _dl_relocate_static_pie applied IRELATIVE relocations [BZ #27164] Fangrui Song via Libc-alpha
2021-07-08 23:27 ` H.J. Lu via Libc-alpha
2021-07-12 14:08 ` Carlos O'Donell via Libc-alpha
2021-07-13  8:06   ` Fangrui Song via Libc-alpha
2021-07-13  8:33     ` Siddhesh Poyarekar
2021-07-13 23:06       ` Fangrui Song via Libc-alpha
2021-07-13 23:20         ` H.J. Lu via Libc-alpha
2021-07-13 23:31           ` Fāng-ruì Sòng via Libc-alpha
2021-07-13 23:47             ` H.J. Lu via Libc-alpha
2021-07-13 23:57               ` Fāng-ruì Sòng via Libc-alpha
2021-07-14  1:17                 ` H.J. Lu via Libc-alpha
2021-07-14  2:15         ` Siddhesh Poyarekar [this message]
2021-09-06  6:30           ` Fāng-ruì Sòng via Libc-alpha

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

  List information: https://www.gnu.org/software/libc/involved.html

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

  git send-email \
    --in-reply-to=d3d115cb-ac1c-dd1c-d7b2-35b0414a7201@gotplt.org \
    --to=siddhesh@gotplt.org \
    --cc=libc-alpha@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).