From patchwork Sat Sep 7 07:48:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1982137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=20230601 header.b=fY5oqOIp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X14sL6BQRz1y1S for ; Sat, 7 Sep 2024 17:45:56 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 5B9FB3537315; Sat, 7 Sep 2024 09:45:46 +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=20230601 header.b=fY5oqOIp; dkim-atps=neutral Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by helium.openadk.org (Postfix) with ESMTPS id 42A9935369AF for ; Sat, 7 Sep 2024 09:45:33 +0200 (CEST) Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5365a9574b6so1853980e87.1 for ; Sat, 07 Sep 2024 00:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725695132; x=1726299932; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JMnOm1Kgf4AoR7WQKC5MGsIFo5tMGsmR7HVqqM5hEX4=; b=fY5oqOIpMVLuee8xk8bhJhVM36k1wmrKFlqdAj7s4C8Yh6Pbj4z6cS3Ca34XHGix5m 5JaF9nT5J/jOZ7upiaLs21mfX3S5nd1h8FZJYNUI0dVP/uDWPBzlVZnfZff4QLppM0V3 3mVXCzq8YdSTpjlCOXXb9BAT8T5LDbIHnUWkpPkC+DS24Li3e2zUgr6BF2FlPnA4oC/U 5RvWXcGiNqbKtHaszHY24RyFtUBR/O0G9y79FU77pForCbAUp+1CoVhpFa+uVJnoXwvA vFScNHKGoB6dL20RT8jNi4CI9GjO3PKQJl5vD0QFP9SAr1+fP1ALxSJ9kAqsshf4tV1l aVYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725695132; x=1726299932; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JMnOm1Kgf4AoR7WQKC5MGsIFo5tMGsmR7HVqqM5hEX4=; b=XKegFlHDGFZf1BnE01+F7mdQbsUmBWlPPRFwjoNjRrHgNvrPBT2dUuyUQjWCD3fMnr 3dZstPbccH0XSflKvSQpeeTl59Rxuzgb2N3ZTtZj5S/MrU6v5Znxe/dExZCdbc5aQaUK +/K5Fj0BIWJT800aGGkucc9Z8lNq1b7yAmoR2V7iSRcaiLZcgE1Nt6pcb0EB9Xl+iOOI DhAlnd9Ucv/a9FrZDcdyfOXM5nVN1Aeuiq/I1j5Od5cQnLPLAE6lPS8M2p1tT3LWLk/t gfoOYwtJ8QvszNAb9d1ytGZfOGw07E3b54jeZ/s64SVYYfmUs5MmgsVcGlg5W0WcLqE4 McJQ== X-Gm-Message-State: AOJu0YxoOuzIeWqvqVNJH0mJRRbQ+qZxxdP43tqFRMGDMKyYB/SmXAf6 M50H7sUvT77uSUHNF2T0UH6msFH8+YJAwv5FiXsJEbtHhh2PCk0TFfSbFw== X-Google-Smtp-Source: AGHT+IEdu7npdayF9BIfI+g/Pgz34TzrvsiOB9cTSipL4kB7c8X49nraXx8RidNwilfViiqu30zQVw== X-Received: by 2002:a05:6512:4021:b0:536:5810:e89 with SMTP id 2adb3069b0e04-5365880b041mr4428935e87.49.1725695130626; Sat, 07 Sep 2024 00:45:30 -0700 (PDT) Received: from localhost.localdomain ([2a00:1370:817a:3109:f2b5:63da:6ac8:36ce]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5365f914c72sm82585e87.305.2024.09.07.00.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 00:45:30 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Sat, 7 Sep 2024 10:48:47 +0300 Message-ID: <20240907074848.3185-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Message-ID-Hash: 3G6BZZDYAHAF63U6PKBKIHL7LQGVI3QC X-Message-ID-Hash: 3G6BZZDYAHAF63U6PKBKIHL7LQGVI3QC X-MailFrom: dm.chestnykh@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: Dmitry Chestnykh X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH v2 1/2] mips64n32, time64: Select correct _dl_fstat impl List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: With time64 enabled we have to use statx() instead of stat() or fstat() If the _dl_fstat implementation isn't selected correctly we can have multiple errors inside dynamic linker during startup of the system and of the almost every process Add sparc exclusion like in other places inside this header Signed-off-by: Dmitry Chestnykh --- ldso/include/dl-syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h index 180d03012..c143b8d45 100644 --- a/ldso/include/dl-syscall.h +++ b/ldso/include/dl-syscall.h @@ -168,7 +168,7 @@ static __always_inline int _dl_stat(const char *file_name, #if defined __NR_fstat64 && !defined __NR_fstat && (!defined(__UCLIBC_USE_TIME64__) || defined(__sparc__)) # define __NR__dl_fstat __NR_fstat64 static __always_inline _syscall2(int, _dl_fstat, int, fd, struct stat *, buf) -#elif defined __NR_fstat +#elif defined __NR_fstat && !defined __UCLIBC_USE_TIME64__ || defined(__sparc__) # define __NR__dl_fstat __NR_fstat static __always_inline _syscall2(int, _dl_fstat, int, fd, struct stat *, buf) #elif defined __NR_statx && defined __UCLIBC_HAVE_STATX__ From patchwork Sat Sep 7 07:48:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1982136 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=20230601 header.b=QbRC05w7; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X14sL6DkMz1y1V for ; Sat, 7 Sep 2024 17:45:56 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 3B6E53537317; Sat, 7 Sep 2024 09:45:47 +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=20230601 header.b=QbRC05w7; dkim-atps=neutral Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by helium.openadk.org (Postfix) with ESMTPS id E382935369AF for ; Sat, 7 Sep 2024 09:45:36 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-535694d67eeso2604701e87.0 for ; Sat, 07 Sep 2024 00:45:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725695136; x=1726299936; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7FB+dglbMvyv70tnZIOhhsY8FbIR3nhp8qzyUCmPLT8=; b=QbRC05w74n9m3eI46M+Isl448qhujixcSQkIlZolpN1IYIX4Gmu7WvYaD+NSZZgzM9 z2/1y0Dakm7KGngX0cMlWP676o/SESK7rwI0vMJglWJwOBVq8YoUl9zVxSyBI+IHk5Ge 68TcAzuxvqIU7LeRQk+/zPdKElXPTVbkN0KaJcNGiMawFSXCGNaWyniBTE3uyw2keIKa gbgDx/2AbLyNXTEqSbJD5Nk0GcHhAQMddcwJJJ3kqMrw1eSzcTfjfLYWb3v2kqnGBpbx JQKji5E8ECnm6hhdtV8qG49L72XGe5oDAkcqo/wIJOeNO3euHbIDvE8H4qBBMKcuTn26 ZJ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725695136; x=1726299936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7FB+dglbMvyv70tnZIOhhsY8FbIR3nhp8qzyUCmPLT8=; b=XjJ5NuNrCqArJeG3Lfx3fIeVTB7uneQ5Vev64JbKhy7Sl8SHzgczi8Lk5Vcdd46fWe ohEil6G3ZE62rfezjNggj3QcB4BTXkuoAYN75uOjsR45skt+ibGDG+tAgregkgHfCEWw w2uQ44iTJK9GRTxx7jOncSWMzkXqzOGg74xVY+pHKmkjaEqLf0DZBtTNZ/lYm2gVqZFE YYYZ2KoycXO7MY2mg66GcNQTmE/HsQzBvjB+bFfqEnfcMBETQLFeepDxchm+k4V2/EDQ U6kM0E0uUOaqNx0jU4Rw9sHWXNrsMX1wFVI9k9yMXBVT5Itjqyx6dhe2rA4YU+Ho3rUG 7yAw== X-Gm-Message-State: AOJu0YxVkixpFYNF0tC+Ilfxhe/SeBtIciU4Z8l+EWqi30JW5J/mkBpM ZsCmfsF0ZHcpUD8nsQx07SAcltegjRaBypZsfC45Hf737uH0oGUYR5cWRw== X-Google-Smtp-Source: AGHT+IHM+vJ66kwz8/8+ntSraGySTCGbgPCR/fRFA8lzSoRVsWhTEiY2l8pmZ42QCSzJqXTXaB/0Gw== X-Received: by 2002:a05:6512:33d5:b0:52b:aae0:2d41 with SMTP id 2adb3069b0e04-53657ff721amr1782232e87.28.1725695135198; Sat, 07 Sep 2024 00:45:35 -0700 (PDT) Received: from localhost.localdomain ([2a00:1370:817a:3109:f2b5:63da:6ac8:36ce]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5365f914c72sm82585e87.305.2024.09.07.00.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 00:45:34 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Sat, 7 Sep 2024 10:48:48 +0300 Message-ID: <20240907074848.3185-2-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240907074848.3185-1-dm.chestnykh@gmail.com> References: <20240907074848.3185-1-dm.chestnykh@gmail.com> MIME-Version: 1.0 Message-ID-Hash: EKBLCHGDHQQEYX444IBEL5OWX6U2UONU X-Message-ID-Hash: EKBLCHGDHQQEYX444IBEL5OWX6U2UONU X-MailFrom: dm.chestnykh@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: Dmitry Chestnykh X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH v2 2/2] Revert "mips64: time64 for n32 ABI breaks a lot of tests, disable it for now" List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This reverts commit dd01754e21da71706af07f3e56eade66fc9164fb. Signed-off-by: Dmitry Chestnykh --- extra/Configs/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 86bd20d76..454b6ddb8 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -1032,7 +1032,7 @@ config UCLIBC_USE_TIME64 TARGET_i386 || \ TARGET_m68k || \ TARGET_microblaze || \ - (TARGET_mips && !(CONFIG_MIPS_N64_ABI || CONFIG_MIPS_N32_ABI)) || \ + (TARGET_mips && !CONFIG_MIPS_N64_ABI) || \ TARGET_or1k || \ TARGET_powerpc || \ TARGET_riscv32 || \