From patchwork Sat Jun 17 16:40:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 1796195 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=v8HPM0JA; 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 4Qk1xK6GD0z20Wy for ; Sun, 18 Jun 2023 02:40:50 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67EE83857806 for ; Sat, 17 Jun 2023 16:40:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67EE83857806 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687020047; bh=JqhbBwm3yApBF2ZHS04Zo1jLk/uXf99aHeN/hj5o56k=; 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=v8HPM0JAnyUH9a5bnLuYgVUisA0aBJanC0MUKikmekbMkNj2aUR/5X9hRiIHQwnOF vPDhheZvWOsunbv5RMgNxuCM3G/w/onanZAG9gXQ7hzzp8zpJLRsNv4by5GaeOQZJN 5hOjK1dJ7ecYOIFuIO0S3S+9/d7oJb/xwFodYVR0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id 8847E3858D39 for ; Sat, 17 Jun 2023 16:40:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8847E3858D39 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b466066950so10472181fa.2 for ; Sat, 17 Jun 2023 09:40:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687020029; x=1689612029; 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=JqhbBwm3yApBF2ZHS04Zo1jLk/uXf99aHeN/hj5o56k=; b=TMqAao0NMooBIzt6yRJGeP4/WS08K8ohmWFIrPzSL+6Ezu8MR/HzXOF8r3goVzvI3B tYU8/gJpazFCjTGhG7RzfA4m4KIR/6+CWHZgizC3Osde9IIKy2T1UJ8+YQHkloLuI34c 7CGs4nbbeT1OmqzUg+C6xzP6D31G5bTUHJaqtUGzJiZxtnIdG5l/izvVCLeMsjr94aNO /v3hfBvAfSYw1EjU6nqq1BnUnupi9IApIwvlvLxSxr/I+GU8fwSV61aeybjiCc7o0JEh Mv+9IK0AQnRa8oy6AT5BBlD2CJh+5NaXj882HrPLfO9ZFQ0LRdzgY/6NMTZVFITBpSrD 4vDA== X-Gm-Message-State: AC+VfDxTzNrsERRjWdudwo5CM2cS4EDXHLvb57ld809inGneZTPsA0jB ozfFycylQSiy3yIA/0Z3zWKbKX7kiHo= X-Google-Smtp-Source: ACHHUZ5SKAoZud13KXvYEhm+bgiMyC3lR2qsaSWWZ86CcmOQHx5QuwB5S9Ky2QWU4EdAzcX0CeIrxg== X-Received: by 2002:a2e:2d02:0:b0:2ac:7852:4096 with SMTP id t2-20020a2e2d02000000b002ac78524096mr3323396ljt.24.1687020029362; Sat, 17 Jun 2023 09:40:29 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:173b:cc34:4e0d:9ea6:c16c]) by smtp.gmail.com with ESMTPSA id d3-20020a2e8903000000b002b4430dda25sm1559251lji.92.2023.06.17.09.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jun 2023 09:40:28 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v3 2/2] x86: Make dl-cache.h and readelflib.c not Linux-specific Date: Sat, 17 Jun 2023 19:40:26 +0300 Message-ID: <20230617164026.124004-2-bugaevc@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230617164026.124004-1-bugaevc@gmail.com> References: <20230617164026.124004-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 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: Adhemerval Zanella --- 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