From patchwork Wed May 17 18:54:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 1782921 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ex4Sz+aU; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QM2N45ncZz20KF for ; Thu, 18 May 2023 04:54:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9B3A038438DD for ; Wed, 17 May 2023 18:54:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B3A038438DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684349682; bh=9XTLeJ63YWXhGa96XlMaZnvkrNqK5koAjAWBvA7R7L8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=ex4Sz+aUziOA76nvVpxVNKtkb4WD3lIo90Aff+DeIAf5Zq/n/JhCCcKoyDnD8bjrf v5PxaGVBL1Q759W3Utcdi2Of0iPCu8z+bmVjTqk6EqudsccIRCis1Y4+ksFz6EvatF Nq4aBUmdtL/p1f4gTDE5rXZrDDaqwUePa8SaqHpI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id B549D38708C6 for ; Wed, 17 May 2023 18:54:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B549D38708C6 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ac81d2bfbcso11248691fa.3 for ; Wed, 17 May 2023 11:54:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684349666; x=1686941666; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9XTLeJ63YWXhGa96XlMaZnvkrNqK5koAjAWBvA7R7L8=; b=PcpZaEe5/xQsrUF3hA+qIfWZ7g94rb8tXFf/YzZRFrXpJV0b88I6LPbiLH3H/CFQvI 2etCjYbb+IVM8kVzEg+dOWXEtKfG039dVaKqmyo/PqtWbAfHq9I3qAdmJBsj1iPmKiAM +3CGpsDrPbzgc6JvFB35/h3UIp+QdIxHAU2dREtcOIva2BJj5YET4v4wLPwgdMcM6Q1b yTB5yYSkMFBupI1oax6Hje17U1HiL/ev1/qjLIBR8VAIFyFA/dylD2LEQ5qvIjqc7SPN otinTEcdPgsuitmr4+Nz5l48lUSq42COLPeXKGlq9yBOq22YeOdJLuZ0V4x1rlg6c2tU ruaQ== X-Gm-Message-State: AC+VfDzzkKeYN5ouKc4I44+dP4dkZrBXANleWSGRxj8ry1MhGcibChgQ AFB2fn7Yo5hRdh1xXXkaf1Bm7LY80lw= X-Google-Smtp-Source: ACHHUZ5UXMoTWUVozyGL8OcgN5MLcUZeupwbZVvg1nZMeB1K4LIZ9jBNVEbrGGu4g+wp3DuCzn6eGg== X-Received: by 2002:a2e:9644:0:b0:2ad:89b6:c35d with SMTP id z4-20020a2e9644000000b002ad89b6c35dmr10653193ljh.14.1684349665867; Wed, 17 May 2023 11:54:25 -0700 (PDT) Received: from surface-pro-6.. ([194.190.106.50]) by smtp.gmail.com with ESMTPSA id s23-20020a2e9c17000000b002ad90280503sm4052326lji.138.2023.05.17.11.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 11:54:25 -0700 (PDT) To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [RFC PATCH 2/2] x86: Make dl-cache.h and readelflib.c not Linux-specific Date: Wed, 17 May 2023 21:54:22 +0300 Message-Id: <20230517185422.71084-3-bugaevc@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230517185422.71084-1-bugaevc@gmail.com> References: <20230517185422.71084-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" These files could be useful to any port that wants to use ld.so.cache. Signed-off-by: Sergey Bugaev Reviewed-by: Carlos O'Donell --- sysdeps/{unix/sysv/linux => }/x86/readelflib.c | 0 sysdeps/{unix/sysv/linux => }/x86_64/dl-cache.h | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename sysdeps/{unix/sysv/linux => }/x86/readelflib.c (100%) rename sysdeps/{unix/sysv/linux => }/x86_64/dl-cache.h (100%) diff --git a/sysdeps/unix/sysv/linux/x86/readelflib.c b/sysdeps/x86/readelflib.c similarity index 100% rename from sysdeps/unix/sysv/linux/x86/readelflib.c rename to sysdeps/x86/readelflib.c diff --git a/sysdeps/unix/sysv/linux/x86_64/dl-cache.h b/sysdeps/x86_64/dl-cache.h similarity index 100% rename from sysdeps/unix/sysv/linux/x86_64/dl-cache.h rename to sysdeps/x86_64/dl-cache.h