From patchwork Thu Sep 15 19:30:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 1678402 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Aq/Z2geu; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (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 4MT6l65flfz1ynm for ; Fri, 16 Sep 2022 05:31:28 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 500A1352077B; Thu, 15 Sep 2022 21:31:16 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Aq/Z2geu; dkim-atps=neutral Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by helium.openadk.org (Postfix) with ESMTPS id 180C43520193 for ; Thu, 15 Sep 2022 21:31:13 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id d64-20020a17090a6f4600b00202ce056566so13946406pjk.4 for ; Thu, 15 Sep 2022 12:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=ebC2k+2+7C5EMUnN9B7LsmLrIL217Qaad3/B1Q3BMPk=; b=Aq/Z2geuMRaiZfzC+JJDfHEB4pbkhGxWnZdJ9cLOKWZFsBVL6cRuT8NqLszyLRnISP GG0p7vG1CU7806Q20fAaQzboq1nUTNmO9tlRI71oUYpe4m3mx4eGGf1rjZy+xn4j098f /XZoC56bcarIORnIAQRXiuts/QZ7VxRG+Qar2jPD2Sq+TwjbQqC4rIt1RhooAbAXG6Pu isrbuUGiwuPilBbMJb7ojkV3dxk9GkO0gtvJkq11y8bF/2UhaCOMqXyZCKCt7tBAzECG 2QYgXCAVaagWKE8imEJiNMU/tmAxh6R2TIpKkmmtmzRC/SRsrFYPuQg4UipN+vIWqZjV VMHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=ebC2k+2+7C5EMUnN9B7LsmLrIL217Qaad3/B1Q3BMPk=; b=MNDwUkbPDw+2HGlKzp6r+QlWV4ZUinj0M5H8xHOieGHdOcVpnDpFLvSs7coTNS0Fg2 VX0VFaYXKipHI3s5HwhrDk3EtUSEk4Of9f6Y8CiDo7F0qzDTt2cAzHcmezrh4i6h0NhL zCg4PrHCpG8+X8S6U3DqxbxndJlpmlimnV8m2/3TLXTM8bm+RezVVuof1K3xYOBRFzM7 wDq81TGlMDdt1Z2Uu9NjKFGmbRYf9d63hB70WvgOkcWev5jXoWckWoHoHnNjRSmqcMeP ssaluKi7rNHoMCs5XUIXhDad6NSWRvAdALC6zc4TGsuIFvepBSNqjiptlca6eOaV0xb2 ezhA== X-Gm-Message-State: ACrzQf3zy/tUVuDKxoMxlhyOehJKKJX8Kfn+OG3NNy4Cb9MD5+VWagq1 zDbfNjqf6VDee4o/Sv3kI/A2dhv3boDP5Q== X-Google-Smtp-Source: AMsMyM6sNhccAAIosZYqsaigLzU3jvkf3EXcBgPMFpVnxMZCyXZaerNQ7w2re6ewtoT318ITQjgQpg== X-Received: by 2002:a17:902:c206:b0:176:a575:5ca8 with SMTP id 6-20020a170902c20600b00176a5755ca8mr1123004pll.74.1663270270815; Thu, 15 Sep 2022 12:31:10 -0700 (PDT) Received: from octofox.metropolis (c-24-130-93-68.hsd1.ca.comcast.net. [24.130.93.68]) by smtp.gmail.com with ESMTPSA id n9-20020a170902e54900b00174be817124sm13418743plf.221.2022.09.15.12.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 12:31:10 -0700 (PDT) From: Max Filippov To: devel@uclibc-ng.org Date: Thu, 15 Sep 2022 12:30:49 -0700 Message-Id: <20220915193054.2916840-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Message-ID-Hash: LP37UE3R6YHK546D7SAZ5TGL3MVDGUAY X-Message-ID-Hash: LP37UE3R6YHK546D7SAZ5TGL3MVDGUAY X-MailFrom: jcmvbkbc@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: linted X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH v2 0/5] add static PIE support for xtensa List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hello, this series does a couple cleanups in the ldso, static PIE code and xtensa code and enables static PIE support for the xtensa architecture. Changes v1->v2: - clean up PERFORM_BOOTSTRAP_GOT condition in the ldso - drop patch that adds PERFORM_BOOTSTRAP_GOT to reloc_static_pie Max Filippov (5): static pie: fix building static PDE ldso: clean up PERFORM_BOOTSTRAP_GOT ifdeferry xtensa: ldso: make GOT protection adjustment conditional xtensa: drop ARCH_NEEDS_BOOTSTRAP_RELOCS xtensa: add static pie support extra/Configs/Config.in | 4 +++- ldso/ldso/dl-startup.c | 3 --- ldso/ldso/xtensa/dl-startup.h | 15 ++++-------- ldso/ldso/xtensa/dl-sysdep.h | 3 --- libc/misc/internals/reloc_static_pie.c | 6 ++--- libc/sysdeps/linux/xtensa/crt1.S | 27 ++++++++++++++++++++++ libpthread/nptl/sysdeps/generic/libc-tls.c | 7 ++++-- 7 files changed, 42 insertions(+), 23 deletions(-)