From patchwork Mon Feb 28 06:40:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 51418 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 BCADA3858C20 for ; Mon, 28 Feb 2022 06:42:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCADA3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1646030520; bh=lxLsZwZZi7hBLg1oRxgNnnEkDO3aW1ySEaYJ4SM8nIU=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=TdEy8ZS6nxT+3RPm87nw0SfsNSOzPyLnZ4uToB04pvVrPySFDZ25+89tQHA8IixA2 bFmwE8ut07+DmKonZL3uE4kaWWT2UKib8azgzHa1Gw2AhR3dpK0j16pW6qh2NIq1rs MrERW6HnzLE1uMZWtRzne16COtkOj2W+gnO7Fw4o= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id E64EE3858C83 for ; Mon, 28 Feb 2022 06:41:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E64EE3858C83 Received: by mail-pj1-x1036.google.com with SMTP id m22so10301939pja.0 for ; Sun, 27 Feb 2022 22:41:36 -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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lxLsZwZZi7hBLg1oRxgNnnEkDO3aW1ySEaYJ4SM8nIU=; b=jf9BGS0bf3UzjKUi3XtTTqaeNv+lA2sqA90Teqy3MPHfCUckMzUDPX8CfsEEqkw9sr OfQ4WQB19J9AD+Ly4RYPyJkEYgsknxbtngrZPD3XS50VGYQOsv9FJCAwWXnx1aJaVR8B 3NhQkkejyJ/s1UUrLFFJCcVQX78lXZcvLVy5o9+UEnSJhIw3nXZrNTPaEyPd3r0pLfDM qErCqLeAo/dlBV2fq7zN6AbkjufmSUqYXRPsYH+8m0T3x8QiS+Yvg+l8FOgxcbh8qAlo RtlpaZtCyDCfLn3nARxM6uFxe3CN16oUGesW8AeOL8szSoOFT0t1L3Sdrg91andTwM+T MMNw== X-Gm-Message-State: AOAM531Ta+loFLdKJBo/i7GAoOT/Bo9oRyh1m5xWrcw4hMdxGvlsx3Ct zCbkY/R87ZqX22EIOmbEhDs8MFo2Zk0= X-Google-Smtp-Source: ABdhPJxhRK3TiLmwNWO05s3GsRwAzQvw5R3DefX0Sg8bpJ/5pWRpe4+ws1cjOEPdwG885KgIiKkSYA== X-Received: by 2002:a17:902:d4c6:b0:150:15ed:3cd9 with SMTP id o6-20020a170902d4c600b0015015ed3cd9mr18498445plg.2.1646030495677; Sun, 27 Feb 2022 22:41:35 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:f31d:e338:6c7b:8cfa]) by smtp.gmail.com with ESMTPSA id q15-20020a63504f000000b0037425262293sm9130249pgl.43.2022.02.27.22.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Feb 2022 22:41:34 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH v2 0/4] PowerPC64 static-pie Date: Mon, 28 Feb 2022 17:10:48 +1030 Message-Id: <20220228064052.3413334-1-amodra@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-3029.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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: Alan Modra via Libc-alpha From: Alan Modra Reply-To: Alan Modra Cc: Tulio Magno Quites Machado Filho , Alan Modra Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" This is a repost of the series at https://sourceware.org/pipermail/libc-alpha/2022-January/135598.html incorporating review comments. Changes are: - subject lines changed to comply with glibc commit log standards - patch 1/4 log now mentions making a couple of symbols hidden - patch 2/4 makes at_platform available to early ifunc resolvers as well as hwcap. - patch 3/4 log mentions stinfo->init and stinfo->fini being unused - patch 4/4 PI_STATIC_AND_HIDDEN comment explains what is going on patch 2/4 is the only code change from the previous series. Testsuite results now show no regressions on powerpc64le-linux. I haven't reposted the old patch 4/5 as it was just a side-issue I noticed when looking over relative relocations. https://sourceware.org/pipermail/libc-alpha/2022-January/135603.html I think it qualifies as an obvious patch so will commit it separately from this series. Alan Modra (4): powerpc64: Use medium model toc accesses throughout powerpc64: Set up thread register for _dl_relocate_static_pie powerpc: Relocate stinfo->main powerpc64: Enable static-pie sysdeps/powerpc/hwcapinfo.c | 8 ++--- sysdeps/powerpc/hwcapinfo.h | 3 +- sysdeps/powerpc/nptl/tls.h | 8 ++--- sysdeps/powerpc/powerpc64/__longjmp-common.S | 8 +++-- sysdeps/powerpc/powerpc64/configure | 6 ++++ sysdeps/powerpc/powerpc64/configure.ac | 9 ++++++ sysdeps/powerpc/powerpc64/dl-machine.h | 33 +++++++++++++++++--- sysdeps/powerpc/powerpc64/dl-trampoline.S | 8 +++-- sysdeps/powerpc/powerpc64/setjmp-common.S | 8 +++-- sysdeps/powerpc/powerpc64/start.S | 3 +- sysdeps/powerpc/powerpc64/sysdep.h | 6 ++-- sysdeps/unix/sysv/linux/powerpc/Makefile | 6 ++++ sysdeps/unix/sysv/linux/powerpc/libc-start.c | 15 +++++++-- 13 files changed, 93 insertions(+), 28 deletions(-)