public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org, Florian Weimer <fweimer@redhat.com>
Subject: Re: [PATCH 3/3] elf: Implement force_first handling in _dl_sort_maps_dfs
Date: Wed, 31 Aug 2022 13:37:49 -0300	[thread overview]
Message-ID: <e63db599-1d1d-e139-222d-508503c33986@linaro.org> (raw)
In-Reply-To: <79b0fc29-3d62-3336-e160-71dedac4a5df@linaro.org>



On 31/08/22 13:37, Adhemerval Zanella Netto wrote:
> 
> 
> On 15/08/22 11:30, Florian Weimer via Libc-alpha wrote:
>> As documented in a comment _dl_close_worker, the skipping is actually
>> needed for correctness.  It also seems less surprising if the
>> just-opened object is always initialized last, even in the presence
>> of cycles.
> 
> I think it is BZ#28937, isn't? Also could you extend the explanation as you
> did in the last comment, the initial phrase sounds confusing.  Maybe extend
> the comment to say that not _dl_sort_maps_dfs will move the main object to
> front, so where previous you have the maps input as:
> 
>   maps[0].l_name=elf/tst-bz28937-dir/tst-bz28937-a.so
>   maps[1].l_name=[...]/elf/tst-bz28937-dir/tst-bz28937-a1.so
>   maps[2].l_name=[...]/elf/tst-bz28937-dir/tst-bz28937-a2.so
>   maps[3].l_name=./libc.so.6
>   maps[4].l_name=elf/ld.so
> 
> It will not be properly sorted as:

It will *now* be ...

  reply	other threads:[~2022-08-31 16:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 14:30 [PATCH 0/3] Forced ordering for DFS ELF dependency sorting (bug 28937) Florian Weimer
2022-08-15 14:30 ` [PATCH 1/3] scripts/dso-ordering-test.py: Generate program run-time dependencies Florian Weimer
2022-08-15 14:35   ` Florian Weimer
2022-08-29 14:30   ` Adhemerval Zanella Netto
2022-08-15 14:30 ` [PATCH 2/3] elf: Rename _dl_sort_maps parameter from skip to force_first Florian Weimer
2022-08-29 16:40   ` Adhemerval Zanella Netto
2022-08-15 14:30 ` [PATCH 3/3] elf: Implement force_first handling in _dl_sort_maps_dfs Florian Weimer
2022-08-31 16:37   ` Adhemerval Zanella Netto
2022-08-31 16:37     ` Adhemerval Zanella Netto [this message]
2022-09-06  6:39     ` Florian Weimer

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=e63db599-1d1d-e139-222d-508503c33986@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=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).