From: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: "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, 2 Aug 2021 13:43:31 -0700 [thread overview]
Message-ID: <CAMe9rOotns8mgptn209yzG367eW16Q8TU6Pf87ycWWKPmnLddw@mail.gmail.com> (raw)
In-Reply-To: <87h7g8ug94.fsf@igel.home>
On Mon, Aug 2, 2021 at 6:29 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> 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.
>
Removed from the v2 patch.
--
H.J.
next prev parent reply other threads:[~2021-08-02 20:44 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 via Libc-alpha
2021-08-02 4:29 ` [PATCH 2/2] ld.so: Hide _r_debug to support DT_DEBUG [BZ #28130] H.J. Lu via Libc-alpha
2021-08-02 13:29 ` Andreas Schwab
2021-08-02 20:43 ` H.J. Lu via Libc-alpha [this message]
2021-08-02 21:19 ` Florian Weimer via Libc-alpha
2021-08-02 21:46 ` H.J. Lu via Libc-alpha
2021-08-02 23:06 ` H.J. Lu via Libc-alpha
2022-10-06 16:38 ` [PATCH 1/2] Map ABI/VERSION of rtld to ABI/VERSION of ld [BZ #28132] Carlos O'Donell via Libc-alpha
2022-10-06 18:46 ` H.J. Lu via Libc-alpha
2022-10-06 19:52 ` H.J. Lu 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=CAMe9rOotns8mgptn209yzG367eW16Q8TU6Pf87ycWWKPmnLddw@mail.gmail.com \
--to=libc-alpha@sourceware.org \
--cc=hjl.tools@gmail.com \
--cc=schwab@linux-m68k.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).