public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
Subject: Re: [PATCH 2/2] ld.so: Hide _r_debug to support DT_DEBUG [BZ #28130]
Date: Mon, 02 Aug 2021 15:29:27 +0200	[thread overview]
Message-ID: <87h7g8ug94.fsf@igel.home> (raw)
In-Reply-To: <20210802042940.932692-2-hjl.tools@gmail.com> (H. J. Lu via Libc-alpha's message of "Sun, 1 Aug 2021 21:29:40 -0700")

On Aug 01 2021, H.J. Lu via Libc-alpha wrote:

> 1. Add a function, __r_debug_location, which returns the address of
> _r_debug:
>
> /* Return the address of that structure used by the dynamic linker.  */
> extern struct r_debug * __r_debug_location (void) __attribute_const__;
>
> It has a special glibc version, GLIBC_DEBUG.
>
> 2. Hide _r_debug in ld.so by defining _r_debug with __r_debug_location:
>
>  #define _r_debug (*__r_debug_location ())

There is no need for that.  Nobody should be using _r_debug.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

  reply	other threads:[~2021-08-02 13:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-02  4:29 [PATCH 1/2] Map ABI/VERSION of rtld to ABI/VERSION of ld [BZ #28132] H.J. Lu
2021-08-02  4:29 ` [PATCH 2/2] ld.so: Hide _r_debug to support DT_DEBUG [BZ #28130] H.J. Lu
2021-08-02 13:29   ` Andreas Schwab [this message]
2021-08-02 20:43     ` H.J. Lu
2021-08-02 21:19     ` Florian Weimer
2021-08-02 21:46       ` H.J. Lu
2021-08-02 23:06         ` H.J. Lu
2022-10-06 16:38 ` [PATCH 1/2] Map ABI/VERSION of rtld to ABI/VERSION of ld [BZ #28132] Carlos O'Donell
2022-10-06 18:46   ` H.J. Lu
2022-10-06 19:52     ` 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=87h7g8ug94.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --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).