public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Stafford Horne <shorne@gmail.com>
To: Siddhesh Poyarekar <siddhesh@gotplt.org>
Cc: GLIBC patches <libc-alpha@sourceware.org>
Subject: Re: [PATCH] malloc: Fix malloc debug for 2.35 onwards
Date: Tue, 16 Nov 2021 06:07:34 +0900	[thread overview]
Message-ID: <YZLMFpUfXOanE8wm@antec> (raw)
In-Reply-To: <bf1a2c37-65df-00a7-5c27-0629c8b392d8@gotplt.org>

On Mon, Nov 15, 2021 at 08:10:42AM +0530, Siddhesh Poyarekar wrote:
> [sorry, hit send too soon]
> 
> On 11/15/21 08:04, Siddhesh Poyarekar wrote:
> > What symbols does this change generate?  Could you please share the
> > output of objdump -T malloc/libc_malloc_debug.so from your build?
> > 
> 
> Basically the idea of SHLIB_COMPAT usage here is twofold: first, to ensure
> that the symbol versions in libc_malloc_debug.so are at the exact same
> version as those in libc.so and second, to prevent linking against
> libc_malloc_debug.so.
> 
> In that sense, I think SHLIB_COMPAT usage is a hack.  The correct way would
> be to make a new macro like SHLIB_COMPAT, which creates non-default symbol
> version at the latest version of the libc symbol; i.e. for your port it
> would be malloc@GLIBC_2.35 and for x86_64 it would be malloc@GLIBC_2.2.5.

I am not sure, after my patch the SHLIB_COMPAT usage is just there for compat
symbols.  As you mention using SHLIB_COMPAT to ensure libc_malloc_debug.so and
libc.so have the same version seems strange, I would think that would be
controlled by shlib-version or done out of the box.

-Stafford

  reply	other threads:[~2021-11-15 21:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-13  0:40 Stafford Horne
2021-11-15  2:34 ` Siddhesh Poyarekar
2021-11-15  2:40   ` Siddhesh Poyarekar
2021-11-15 21:07     ` Stafford Horne [this message]
2021-11-15 22:47       ` Siddhesh Poyarekar
2021-11-16  5:12         ` Stafford Horne
2021-11-16  5:15           ` Siddhesh Poyarekar
2021-11-16  5:29             ` Stafford Horne
2021-11-15 21:04   ` Stafford Horne

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=YZLMFpUfXOanE8wm@antec \
    --to=shorne@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=siddhesh@gotplt.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).