From: David Kilroy <David.Kilroy@arm.com>
To: "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>
Cc: nd <nd@arm.com>
Subject: [PATCH v2 2/3] elf: avoid redundant sort in dlopen
Date: Thu, 24 Oct 2019 10:34:00 -0000 [thread overview]
Message-ID: <a9a6da966401bb51b7763a27eb8d898cc2ad24db.1571755115.git.david.kilroy@arm.com> (raw)
In-Reply-To: <cover.1571755115.git.david.kilroy@arm.com>
l_initfini is already sorted by dependency in _dl_map_object_deps(),
so avoid sorting again in dl_open_worker().
Tested by running the testsuite on x86_64.
---
elf/dl-open.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/elf/dl-open.c b/elf/dl-open.c
index 03f2b86..4df2e3f 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -326,7 +326,6 @@ dl_open_worker (void *a)
l = new->l_initfini[++j];
}
while (l != NULL);
- _dl_sort_maps (maps, nmaps, NULL, false);
int relocation_in_progress = 0;
--
2.7.4
next prev parent reply other threads:[~2019-10-24 10:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 10:34 [PATCH v2 0/3] elf: Allow dlopen of filter object to work [BZ #16272] David Kilroy
2019-10-24 10:34 ` [PATCH v2 3/3] elf: avoid stack allocation in dl_open_worker David Kilroy
2019-10-24 10:34 ` [PATCH v2 1/3] elf: Allow dlopen of filter object to work [BZ #16272] David Kilroy
2019-10-24 10:34 ` David Kilroy [this message]
2019-11-06 16:03 ` [PATCH v2 0/3] " David Kilroy
2019-11-15 17:31 ` David Kilroy
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=a9a6da966401bb51b7763a27eb8d898cc2ad24db.1571755115.git.david.kilroy@arm.com \
--to=david.kilroy@arm.com \
--cc=libc-alpha@sourceware.org \
--cc=nd@arm.com \
/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).