From patchwork Fri Mar 4 13:37:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 51569 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5CF2C3857C65 for ; Fri, 4 Mar 2022 13:41:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5CF2C3857C65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1646401280; bh=TJ3xPz/Y/t+zpVRgL32rl7nmjoJbWL7q4qCgHyWTn50=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=xSc09wpiDcBtH9fT7P9+3GXuI+E28QtXJU+z4dppDfXKXyLVWcS+dw3DRldtVE7Ps J04r5bkpAO83M9l8lHKG4cKO9UjXxjgIPB4q8uhBQXm7NygswtuqmXhX+Q6MW94eYO F09cd8BzM5OdfF/J1DGRks7PY+cBIiDAkhVsIYSU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id 3C3BD3857C41 for ; Fri, 4 Mar 2022 13:38:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3C3BD3857C41 Received: by mail-oi1-x235.google.com with SMTP id s5so7827401oic.10 for ; Fri, 04 Mar 2022 05:38:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=TJ3xPz/Y/t+zpVRgL32rl7nmjoJbWL7q4qCgHyWTn50=; b=6DtWX3OaL4O7Y4R+KjkRaO1eyQq3KnH3uwNlmvoWLrsCNd7SeAL1Fdmy3YaJeIfM4u GEnGE5xl7Vzh07dtqPEnLEdPnH75FbLPfuoHlIP+psO3EEedZ7+sWbtiqrkRMEcg/eMc TJZ5glZBIjN7uCwUlhE66MNhWlJIZRnm2FlsdS+vzYYXsAQt/Zffb++vsc9/uOi+94Mu ZP4LdBmESJ0QIYdnYA36tDvE1WyZcvHHyVssYsO9206ynw8dfa20dnODtTPO6oVWx+LU nAG3TGbk30BVbNYguJles2ulDjjZTH1rrveGcJwOnk7TWHJyy597LhgJtWO0GrVWhqKt ndMA== X-Gm-Message-State: AOAM530rDm9oeyd4UDH8LZQmW43KiP9dUgva8FN2DBclFzNX/4LRI8U/ Rhefao1rtp127CKlxhfFDN82hW6bP5YfPA== X-Google-Smtp-Source: ABdhPJzzfTD9i8sDxuhGh+BNjMIA0Dw8yoftyyVFZ49I8PJPt2eSHdw57IwoktbZEEPxR45oL58Nyg== X-Received: by 2002:aca:bb88:0:b0:2d4:eb52:4513 with SMTP id l130-20020acabb88000000b002d4eb524513mr9333205oif.163.1646401085299; Fri, 04 Mar 2022 05:38:05 -0800 (PST) Received: from birita.. ([2804:431:c7ca:2dcb:a992:742c:8048:43bc]) by smtp.gmail.com with ESMTPSA id i11-20020a056830402b00b005af1411565bsm2270240ots.78.2022.03.04.05.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 05:38:04 -0800 (PST) To: libc-alpha@sourceware.org, Florian Weimer Subject: [PATCH v2 0/3] Remove kernel version and distinguish library check Date: Fri, 4 Mar 2022 10:37:58 -0300 Message-Id: <20220304133801.1868553-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" First patch removes the kernel version check on Linux, which is a feature that from times to times cases some issues (such as [1]). Second patch removes the same check on ldconfig. Third removes the distinguish library check used to handle ancient libc5 and aout files. [1] https://github.com/microsoft/WSL/issues/3023 Adhemerval Zanella (3): Remove kernel version check elf: Remove ldconfig kernel version check Remove dl-librecon.h header. NEWS | 7 ++ config.h.in | 3 + csu/libc-start.c | 8 -- csu/version.c | 3 + elf/cache.c | 55 ++---------- elf/dl-cache.c | 3 - elf/dl-diagnostics.c | 5 -- elf/dl-load.c | 95 ++++---------------- elf/dl-support.c | 12 --- elf/ldconfig.c | 22 ++--- elf/readelflib.c | 51 +---------- elf/readlib.c | 9 +- elf/rtld.c | 40 +-------- sysdeps/generic/dl-cache.h | 1 - sysdeps/generic/dl-librecon.h | 24 ----- sysdeps/generic/ldconfig.h | 14 +-- sysdeps/generic/ldsodefs.h | 9 -- sysdeps/unix/sysv/linux/arm/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/configure | 5 ++ sysdeps/unix/sysv/linux/configure.ac | 2 + sysdeps/unix/sysv/linux/dl-librecon.h | 59 ------------ sysdeps/unix/sysv/linux/dl-osinfo.h | 25 ------ sysdeps/unix/sysv/linux/dl-sysdep.c | 93 ------------------- sysdeps/unix/sysv/linux/dl-sysdep.h | 7 -- sysdeps/unix/sysv/linux/i386/dl-librecon.h | 61 ------------- sysdeps/unix/sysv/linux/ia64/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/m68k/dl-librecon.h | 1 - sysdeps/unix/sysv/linux/mips/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/powerpc/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/riscv/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/s390/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/sparc/readelflib.c | 18 ++-- sysdeps/unix/sysv/linux/x86/readelflib.c | 18 ++-- 33 files changed, 126 insertions(+), 632 deletions(-) delete mode 100644 sysdeps/generic/dl-librecon.h delete mode 100644 sysdeps/unix/sysv/linux/dl-librecon.h delete mode 100644 sysdeps/unix/sysv/linux/i386/dl-librecon.h delete mode 100644 sysdeps/unix/sysv/linux/m68k/dl-librecon.h