Message ID | 20240103171502.1358371-15-bugaevc@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=YXmZcWLJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T4xMS5LW2z1ydb for <incoming@patchwork.ozlabs.org>; Thu, 4 Jan 2024 04:21:08 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB31B3860002 for <incoming@patchwork.ozlabs.org>; Wed, 3 Jan 2024 17:21:06 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by sourceware.org (Postfix) with ESMTPS id 9768F38582A2 for <libc-alpha@sourceware.org>; Wed, 3 Jan 2024 17:15:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9768F38582A2 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9768F38582A2 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302122; cv=none; b=m6/tQ8cnGXIJg0khJYIdq8HYk8Mr/SDy8tqqZZ4UPE7AhO+IqXQgY5QPYRN8IdBmRcBeS4vlaU6+J6QULt/3xFO3q7vkyBme2WDXsLKHkBKXK3IMpDu3yTuh31z+6i4jjlYzLbbd9lZJijyYQSGI902OjFjcEw+vn00ygcHfnIU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302122; c=relaxed/simple; bh=VNmcgOTQwyLUbuAFSGtyRWgRQhP9Go5OAfBn+t2tvak=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rwCA3PRpuW73i/3VPok0hzCAgXj2NB42EhVjS6qIsPbN4JFo08t5uAKOmlZknT+YGcZfndXwujKc+hdAilrFefqsbIVqPHynFaM/9wGo9sKM2rnWsL0MgCHt4S8mXrvzRP0ae05LegE73gbMz89aeT+vDRvkZhuHWaVEisTWdv4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50e7abe4be4so8883299e87.2 for <libc-alpha@sourceware.org>; Wed, 03 Jan 2024 09:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704302118; x=1704906918; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=veuLMyBqN8W5k9tUWAW3Q/wPO3AeUIiUa3jQF8LWkKw=; b=YXmZcWLJxo1L+l/US/Vduo4R0pMoF+7o9OqVrxrLLzlHPZ2HOW0Gbe8Zza3PetgDHg gM2fR+9xCSahCUM5i0//iJRII0VmdX0u/Uu2dnwZcUHg+Q7uiGvvMLn5mBVBAHwKfD58 GD6r9YIhqt8WcTd3Z+YiY/VbwsY5wWcKDyVNAjWkACRo7Qdj7ysIzlKfosTiMYUOl913 NPn9zfi5FhVfY1kqDlGrXHJ53CRf7pBGUlT2Bd1ZzhLhB56yBffsqzPb1kjo21XAE8PL FiVk9VUHqgR4IqmcneilzGbirhg5fRTVE+P11c97tesU+VeUYdTuD4XcylUZ12ZTOv4w LYEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704302118; x=1704906918; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=veuLMyBqN8W5k9tUWAW3Q/wPO3AeUIiUa3jQF8LWkKw=; b=dkCHRZCEkI0SD+l5AsX/mqiBTwJJ4rkpxIcov2Jj0wG0fTrMbob9JvobFUKfZGlZo0 hZ7zRzjD7OSmmd7xdwREwBRFFT1PQG0Jw27RVDppJUgR1xU/DYl41gp4aTz3tsEhKkxn 1EiEfnHw2q1lokKo6B/Do3kVQHq51FTI/Ini0iRHrC4ldyBeg9ARGb2PWvK+kNCEw1N4 2sw9pj0p5fIROlipP2um2dQhveK5YTtklA5WGpVvJlnQZcrfPPPhF3UaFcJSIQ+BNuQE iLigYYuea34q/prmHxCeMhG632een9tH2EZsDxyASQ5oX78eR73JXVD48kDVfP19seux aLFA== X-Gm-Message-State: AOJu0YyVy30y47cSlvYWP89jFzV4iG3KEPCJPVfurKaxOnP6xdSbfr6t QDpGZAFNqeyidsFu3bEm/14qY9+ad8g= X-Google-Smtp-Source: AGHT+IG22y+lTXcPl7dyfFU8ATaxRZvE37aA/rk7RaGMlnOVFyUhE20XIPCYWKhKB6ftcNwOIcvzmA== X-Received: by 2002:a05:6512:2025:b0:50e:75fc:35be with SMTP id s5-20020a056512202500b0050e75fc35bemr6446441lfs.90.1704302117732; Wed, 03 Jan 2024 09:15:17 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:b32f:ebdc:fd0:376b:8006]) by smtp.gmail.com with ESMTPSA id y23-20020a196417000000b0050e6d84d177sm3546068lfb.279.2024.01.03.09.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:15:17 -0800 (PST) From: Sergey Bugaev <bugaevc@gmail.com> To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [RFC PATCH 14/23] aarch64: Allow building without kernel support for BTI Date: Wed, 3 Jan 2024 20:14:47 +0300 Message-ID: <20240103171502.1358371-15-bugaevc@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103171502.1358371-1-bugaevc@gmail.com> References: <20240103171502.1358371-1-bugaevc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org |
Series |
aarch64-gnu port
|
expand
|
diff --git a/sysdeps/aarch64/dl-bti.c b/sysdeps/aarch64/dl-bti.c index fd0d308a..4cf85630 100644 --- a/sysdeps/aarch64/dl-bti.c +++ b/sysdeps/aarch64/dl-bti.c @@ -28,6 +28,7 @@ /* Enable BTI protection for MAP. */ +#ifdef PROT_BTI void _dl_bti_protect (struct link_map *map, int fd) { @@ -59,6 +60,15 @@ _dl_bti_protect (struct link_map *map, int fd) } } +#else /* PROT_BTI */ +void +_dl_bti_protect (struct link_map *map, int fd) +{ + (void) map; + (void) fd; +} +#endif + static void bti_failed (struct link_map *l, const char *program)
If PROT_BTI is not defined, turn _dl_bti_protect () into a no-op. We intend to support BTI & PROT_BTI on the Hurd eventually, but we're not there yet. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> --- sysdeps/aarch64/dl-bti.c | 10 ++++++++++ 1 file changed, 10 insertions(+)