From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id CC8A02D76D for ; Wed, 18 Sep 2024 03:20:33 +0200 (CEST) Received: (qmail 12054 invoked by uid 550); 18 Sep 2024 01:20:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 12022 invoked from network); 18 Sep 2024 01:20:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alexrp.com; s=alexrp; t=1726622419; x=1727227219; darn=lists.openwall.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NxUN0oc6V6mMr6tvP4trOVN3jizrtYBTG0bNKesW0QQ=; b=T0KSMhtwFa6lv2pE2WPSUL+vyXTWFZzJkwwQv4OxRE5rQSP70tfT+rJvgCBJeffJcF NGOgjy+2bIKRX9j9ai1/PKgmSuTCJ/K/R8ER7nkApkfCaY5MdCvCZokLyzlKQIAsgWk0 tuNQmXto6EwzNVxAkaBl5uY7bfxhNd4WAxLewgg9EVZY1r+gKfCaSG36h2fLe4srWm7F /ScTU0nykM+9Xikv/0vYns5xrhtmilFijJuPntDWsP21FsgBIVpru4D/DllZ5uID0mBb CHWXRWeHHULVq6n8RgZ2V9GWF6a1EOQc7zM2J/WsicxZhv/SDz0/tBFvBGQT8B6Tsbj8 cbCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726622419; x=1727227219; 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=NxUN0oc6V6mMr6tvP4trOVN3jizrtYBTG0bNKesW0QQ=; b=pI7dApVVndizh3axfl5qPYaAKHsSp5K6fJDHJb4LtFK3zSVoAKyIxPr4pg5Br15gWi u/kBtKv1h4x+3IObFRsPvVJ3k2Ml59yOvu1+Ue66aVWbcVSj9RIq4+d4fl8Ox0PLJwv8 AYlna+6DLBn8cElUtC0z/3XFKNS/Jyw7aiHDzLDjnUC82o2KgkMidPP8dsUzfKhO3DQ/ th/nPXuC8cFmCSq+RlS4LXHdEGdcJGl1ByVXsGPlbgPXdQqozWiCQvJtBVLrMHxkOy9C WUNSeWpM6GTtzKpmvYDQYwYZ8IZkXvM1Lv7JTYauRvnOUrDvrO7R8Q2r8g2KtfQnhYYn sXPA== X-Gm-Message-State: AOJu0YwCTBgxeRkBXKZOMbyGae7h2pxQ2deBgpgr6RWtMF0CNcx6MxzL exCnab0NFUwhm0YJA6XqSRx5Krq39br6Wz43iOV3uBjag4ecju79KnIog3iRfsltmA0DVEF22Xn gJX4QNUSD+0qZqrR9cFkoLa5ih24mnfz674tUcOhuwb075Q828iBiX0vQraTTAp1iseU4YSbseO Np+uE1ufeFEEK79v/gfjj6LkGEUm10xnPF X-Google-Smtp-Source: AGHT+IH8l2sbncbx/NtLAbYqaPxyMTSZJaZviASzAGjkygW2XexHHEQkhdbZKLEiwcEM54HAJfPFZg== X-Received: by 2002:a05:6402:34c3:b0:5b9:462d:c538 with SMTP id 4fb4d7f45d1cf-5c413e08886mr20573070a12.3.1726622418735; Tue, 17 Sep 2024 18:20:18 -0700 (PDT) From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= To: musl@lists.openwall.com Cc: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 18 Sep 2024 03:18:42 +0200 Message-Id: <20240918011842.26118-1-alex@alexrp.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] mips: use `jr $ra` instead of `j $ra` to work around an LLVM assembler bug Details here: https://github.com/llvm/llvm-project/issues/107460 This patch works around the bug by just using the `jr $ra` form, which also more precisely indicates the encoding intent anyway. --- crt/mips/crtn.s | 4 ++-- crt/mips64/crtn.s | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crt/mips/crtn.s b/crt/mips/crtn.s index 506a04b7..92eb3d0e 100644 --- a/crt/mips/crtn.s +++ b/crt/mips/crtn.s @@ -3,11 +3,11 @@ .section .init lw $gp,24($sp) lw $ra,28($sp) - j $ra + jr $ra addu $sp,$sp,32 .section .fini lw $gp,24($sp) lw $ra,28($sp) - j $ra + jr $ra addu $sp,$sp,32 diff --git a/crt/mips64/crtn.s b/crt/mips64/crtn.s index f3930b24..8f090ed3 100644 --- a/crt/mips64/crtn.s +++ b/crt/mips64/crtn.s @@ -3,11 +3,11 @@ .section .init ld $gp,16($sp) ld $ra,24($sp) - j $ra + jr $ra daddu $sp,$sp,32 .section .fini ld $gp,16($sp) ld $ra,24($sp) - j $ra + jr $ra daddu $sp,$sp,32 -- 2.40.1