From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward108p.mail.yandex.net (forward108p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:116]) by sourceware.org (Postfix) with ESMTPS id EC74D385087B for ; Sat, 18 Mar 2023 16:51:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC74D385087B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from myt6-1289f562e823.qloud-c.yandex.net (myt6-1289f562e823.qloud-c.yandex.net [IPv6:2a02:6b8:c12:259d:0:640:1289:f562]) by forward108p.mail.yandex.net (Yandex) with ESMTP id 4D1C226782C3 for ; Sat, 18 Mar 2023 19:51:45 +0300 (MSK) Received: by myt6-1289f562e823.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id cpp3fcrbC8c1-VJUif2YH; Sat, 18 Mar 2023 19:51:44 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1679158305; bh=yR1GAZF89e7Qg2UdhUf8n6NIlmuiTcxb4l8n6B4HsTc=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=rM/+jxTrJOSac4ctfkxcRFKW7uFX5LugoAopEPTkwE4I4FSht5sfcEzaRWyaSVOo3 TBiMKkawz5Ylk9YSeJncRsGVpypzFZ8Zp42GgREUvGDtL5DGDLkUjcTy3/dnQCWtcQ 2pp+6NdqeR1esor5eOsn2CcOtYvpNkuYJweIY8Xs= Authentication-Results: myt6-1289f562e823.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru From: Stas Sergeev To: libc-alpha@sourceware.org Cc: Stas Sergeev Subject: [PATCH 03/13] elf: dont pass fd to _dl_process_pt_xx Date: Sat, 18 Mar 2023 21:51:00 +0500 Message-Id: <20230318165110.3672749-4-stsp2@yandex.ru> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230318165110.3672749-1-stsp2@yandex.ru> References: <20230318165110.3672749-1-stsp2@yandex.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: It is not used in these functions. rtld.c:rtld_setup_main_map() does the same. The test-suite was run on x86_64/64 and showed no regressions. Signed-off-by: Stas Sergeev --- elf/dl-load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elf/dl-load.c b/elf/dl-load.c index fcb39a78d4..ab8b648687 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1379,10 +1379,10 @@ cannot enable executable stack as shared object requires"); switch (ph[-1].p_type) { case PT_NOTE: - _dl_process_pt_note (l, fd, &ph[-1]); + _dl_process_pt_note (l, -1, &ph[-1]); break; case PT_GNU_PROPERTY: - _dl_process_pt_gnu_property (l, fd, &ph[-1]); + _dl_process_pt_gnu_property (l, -1, &ph[-1]); break; } -- 2.37.2