public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
Subject: Re: glibc 2.34 - Hard ABI freeze effective immediately.
Date: Sun, 25 Jul 2021 23:54:59 +0200	[thread overview]
Message-ID: <87fsw2oy8c.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <CAMe9rOp4y5WTJUtR_JEMi9jJgabmw0GAsRXNW8acQFy1z2RgEg@mail.gmail.com> (H. J. Lu via Libc-alpha's message of "Sun, 25 Jul 2021 12:46:06 -0700")

* H. J. Lu via Libc-alpha:

> It was a mistake to export _r_debug from ld.so:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=28130
>
> I'd like to deprecate _r_debug in glibc 2.34 and replace it with:
>
> /* Return the address of that structure used by the dynamic linker.  */
> extern struct r_debug * __r_debug_location (void) __attribute_const__;
> #define _r_debug (*__r_debug_location ())
>
> so that I can extend struct r_debug for libraries loaded with dlmopen:
>
> https://gitlab.com/x86-psABIs/Linux-ABI/-/issues/2

We need to keep it as a symbol because debuggers use it.

If GCC had a an attribute that says, no copy relocation please, we could
perhaps use that in <link.h>.

Maybe we can turn it into a compat symbol.  But it's too late for such
changes in glibc 2.34.

The replacement could use a separate symbol version (GLIBC_DEBUG) with
different ABI stability rules, which would pave the way towards
backporting.

Thanks,
Florian


  reply	other threads:[~2021-07-25 21:55 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05  2:43 glibc 2.34 - Slushy " Carlos O'Donell
2021-07-19  2:15 ` glibc 2.34 - Hard ABI " Carlos O'Donell
2021-07-19 13:51   ` Florian Weimer
2021-07-19 14:13     ` Adhemerval Zanella
2021-07-19 14:30       ` Florian Weimer
2021-07-22 12:28         ` Carlos O'Donell
2021-07-22 13:02           ` Carlos O'Donell
2021-07-22 17:56             ` Florian Weimer
2021-07-22 12:31   ` Carlos O'Donell
2021-07-22 13:24     ` Adhemerval Zanella
2021-07-23  5:13       ` Carlos O'Donell
2021-07-23  5:53         ` Siddhesh Poyarekar
2021-07-26 14:22           ` Carlos O'Donell
2021-07-26 14:28             ` Samuel Thibault
2021-07-26 14:37               ` Siddhesh Poyarekar
2021-07-26 14:45                 ` Samuel Thibault
2021-07-23 13:13         ` Adhemerval Zanella
2021-07-26 13:00           ` Carlos O'Donell
2021-07-26 13:13             ` Adhemerval Zanella
2021-07-26 18:31             ` Adhemerval Zanella
2021-07-22 13:51     ` Siddhesh Poyarekar
2021-07-25 19:46   ` H.J. Lu
2021-07-25 21:54     ` Florian Weimer [this message]
2021-07-25 22:07       ` H.J. Lu
2021-07-25 22:14         ` Florian Weimer
2021-07-26  7:19         ` Andreas Schwab
2021-07-26 14:29     ` Carlos O'Donell
2021-07-26 14:32       ` H.J. Lu

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=87fsw2oy8c.fsf@oldenburg.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /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).