From patchwork Fri Sep 9 18:30:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 1676175 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=89.238.66.15; 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=Ci6y01M8; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (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 4MPPhM5LdCz1yj1 for ; Sat, 10 Sep 2022 04:31:13 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 15A0A31E04E7; Fri, 9 Sep 2022 20:31:02 +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=Ci6y01M8; dkim-atps=neutral Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by helium.openadk.org (Postfix) with ESMTPS id 0D1BB31E00B1 for ; Fri, 9 Sep 2022 20:30:28 +0200 (CEST) Received: by mail-pf1-f181.google.com with SMTP id c198so2409578pfc.13 for ; Fri, 09 Sep 2022 11:30:27 -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=r2EFLkjqhGSrkDjcQwF/rdjV/2bJoFhSDgf59FXJbIY=; b=Ci6y01M8F44GmLe8oz3wKPRNSkoNuh5eQ1snYQ3xFjJBDtNgHFawKgI9LVyp2NezS+ kSASu0UgBq3sUg79NuiWmfypSTHdEMRKVYH+Sn4+AxZ/7McH9WTTxl+8POLVh6JeC9xX It7vyS1x8TaW6qt2LygrdMdWBEUuZdCxl9FJOuMNO+kWYDA/lmDkqow3ZQQ2hxq8IV36 A8jzIv4U9lDI+wKHoji9uiNfKUiC4Mc4WqqYiXYT5bB1eJsUwsyGCCuQo1EkskmEux9o 9qmWdS83z97cX+Ra2x/Cm8LjQ8n0EHM5w5CmSzIex/IKSmu+H0lP6icJEO+k77E7gdTZ 7jEA== 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=r2EFLkjqhGSrkDjcQwF/rdjV/2bJoFhSDgf59FXJbIY=; b=m0qN68HcLxCS/Gn4OG2ptsh+SwyvshT3dh3G3zCrHhOpWQTe/LyY5lJPPxK7s6oA1c Yn4yI1x9b7RhRjHVqXCTYOutPbbXrfYPjXNzOXJAK5gepjH8BNvzTXnL2kFRcyDsj6Ge B4lvL/XL41MTR7X+kBSI+7GkfK53yVGvk7sHXpKAGlwMgPHQzZGu9jNgsOPMe0O7yaKM skYKNyciwU/vJ8EvQd25rJuQDX86qhlR58LoeY2nUffrI0VScgSaFd9zuHJCSN3HY6UP UuTKRv4zldLmfgUhidkN6/oRhFeGZb8PDSNrE/mXIIh0nl4iWJuRH+GsAQHiN0s5Hg9C gfjw== X-Gm-Message-State: ACgBeo0mu9HZvMhn6B0S89mCNRlv7UpIt2A+ah49EPxd5rZqjnqOPglR rWfy+cFWhcAO6bl9mzTEwLIcq63FnbfIug== X-Google-Smtp-Source: AA6agR40BruLcLolWKm2S4gxRyo4wWRrv5i+WR8/0mseM5upcMfo9FCAOf0PFppywp7j3Pj0fvHxvQ== X-Received: by 2002:a63:e906:0:b0:41b:eba0:8b6d with SMTP id i6-20020a63e906000000b0041beba08b6dmr12894272pgh.501.1662748225395; Fri, 09 Sep 2022 11:30:25 -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 q6-20020a170902dac600b00174a4bcefc7sm755709plx.217.2022.09.09.11.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 11:30:24 -0700 (PDT) From: Max Filippov To: devel@uclibc-ng.org Date: Fri, 9 Sep 2022 11:30:04 -0700 Message-Id: <20220909183009.4111393-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Message-ID-Hash: CFK4DV4PZSPYA3UT3DDARTCQFT4KRYE4 X-Message-ID-Hash: CFK4DV4PZSPYA3UT3DDARTCQFT4KRYE4 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 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 static PIE code and xtensa code and enables static PIE support for the xtensa architecture. Max Filippov (5): static pie: fix building static PDE static pie: replicate PERFORM_BOOTSTRAP_GOT conditions from dl-startup.c xtensa: make GOT protection adjustment conditional xtensa: drop ARCH_NEEDS_BOOTSTRAP_RELOCS xtensa: add static pie support extra/Configs/Config.in | 4 +++- ldso/ldso/xtensa/dl-startup.h | 19 ++++++++++++--- ldso/ldso/xtensa/dl-sysdep.h | 3 --- libc/misc/internals/reloc_static_pie.c | 9 +++++--- libc/sysdeps/linux/xtensa/crt1.S | 27 ++++++++++++++++++++++ libpthread/nptl/sysdeps/generic/libc-tls.c | 7 ++++-- 6 files changed, 57 insertions(+), 12 deletions(-)