From patchwork Thu Oct 7 20:08:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 45967 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 197753858022 for ; Thu, 7 Oct 2021 20:09:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 197753858022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1633637362; bh=it/AOlnBNvFiKuDMbgqrjJ/4G4WjKim4T6Vk/pSYqJo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=u6HviJeXDb/5CmIPUXNAhyFuYUeBX6IyAzz2CWOmKFzdq9D4hsmyyB5GCyIKmCNLb S8+pdhuWCDmzOpjKjO0pXUyvet6pRpeMyYPe33ATPbns4afy8fdgkeXPH9QHNEmCmS e9T5afHefmOzQ8hWE+jCuTtc56SwTqIjrPARBJ58= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by sourceware.org (Postfix) with ESMTPS id CC5DB385840C for ; Thu, 7 Oct 2021 20:08:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CC5DB385840C Received: by mail-pj1-x1035.google.com with SMTP id oa12-20020a17090b1bcc00b0019f715462a8so6039080pjb.3 for ; Thu, 07 Oct 2021 13:08:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=it/AOlnBNvFiKuDMbgqrjJ/4G4WjKim4T6Vk/pSYqJo=; b=fh2xMG3Gg2z09MT2etRliiIgd7NBEfHuFUwzy3Hp7+mFt4O9Uv2Nz0NQ9p2/b5SNb2 s+uhoslfKf0VxeQXEAQecYaMd0WEbNZrUNatCF3XInuJbSa64EXikvcWpiWVvoSU2H5z CWRcAD79bGw/31hrASIhE199Bay7e+Qg0tkwvdIo9IASwHJQF9pK0LvMyM+7U+Ja2z0R kfnoRoJYMhct/nWoA4sDNc+d/cLVRtsqCCBk86tskE+UDQej0dm+wbiGDGEqomfgDwpW 4MUA0p+IwrzgOUWxRLArBrwvlfBSJYq68I/xeX7NcwFQjKAHtkBJ+bWjcF3M3Aet183H ZEVg== X-Gm-Message-State: AOAM531atSK06uaRoQogMquy1dBkmf4cogVN7wIwpvMkaooYeEmERMbN raIHapObFNcwAqog8ZXboKU= X-Google-Smtp-Source: ABdhPJzXZ3//Do5eAp6LO9jKLvESa0rBdiqZxrJsH2oKvadwKKVAcaY9rqim3jdbkxYAgs4tibxdvA== X-Received: by 2002:a17:902:930c:b0:13e:42b4:9149 with SMTP id bc12-20020a170902930c00b0013e42b49149mr5568818plb.86.1633637294812; Thu, 07 Oct 2021 13:08:14 -0700 (PDT) Received: from gnu-cfl-2.localdomain ([172.58.39.6]) by smtp.gmail.com with ESMTPSA id t3sm253854pfb.100.2021.10.07.13.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 13:08:14 -0700 (PDT) Received: from gnu-cfl-2.. (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id 5D01AC02C6; Thu, 7 Oct 2021 13:08:13 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH 0/3] Update tests for protected symbol access Date: Thu, 7 Oct 2021 13:08:10 -0700 Message-Id: <20211007200813.1626777-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3026.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Cc: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" 1. Check linker suppor for -z indirect-extern-access. 2. Check compiler support for -fno-direct-extern-access. The GCC patches are posted at https://gcc.gnu.org/pipermail/gcc-patches/2021-September/580106.html 3. Update tests for protected data and function symbols H.J. Lu (3): Check linker suppor for -z indirect-extern-access Check compiler support for -fno-direct-extern-access Update tests for protected data and function symbols configure | 59 +++++++++++++++++ configure.ac | 37 +++++++++++ elf/Makefile | 54 ++++++++++++++++ elf/tst-protected1moda.c | 10 +-- elf/tst-protected1modb.c | 4 +- elf/tst-protected2a.c | 130 ++++++++++++++++++++++++++++++++++++++ elf/tst-protected2apie.c | 1 + elf/tst-protected2b.c | 121 +++++++++++++++++++++++++++++++++++ elf/tst-protected2bpie.c | 1 + elf/tst-protected2mod.h | 35 ++++++++++ elf/tst-protected2moda.c | 52 +++++++++++++++ elf/tst-protected2moda2.c | 41 ++++++++++++ elf/tst-protected2modb.c | 45 +++++++++++++ elf/tst-protected2modb2.c | 28 ++++++++ 14 files changed, 608 insertions(+), 10 deletions(-) create mode 100644 elf/tst-protected2a.c create mode 100644 elf/tst-protected2apie.c create mode 100644 elf/tst-protected2b.c create mode 100644 elf/tst-protected2bpie.c create mode 100644 elf/tst-protected2mod.h create mode 100644 elf/tst-protected2moda.c create mode 100644 elf/tst-protected2moda2.c create mode 100644 elf/tst-protected2modb.c create mode 100644 elf/tst-protected2modb2.c