From patchwork Thu Jan 20 01:31:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 50254 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 947503857815 for ; Thu, 20 Jan 2022 01:32:39 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by sourceware.org (Postfix) with ESMTPS id 0E8213858D35 for ; Thu, 20 Jan 2022 01:32:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0E8213858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pj1-x102e.google.com with SMTP id l16so4247178pjl.4 for ; Wed, 19 Jan 2022 17:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=subject:date:message-id:mime-version:content-transfer-encoding:cc :from:to; bh=ggafvQGznXhhd+7FQh1QNbrzfeGIAZZXNgDiNEFdKqk=; b=gNwN6bTfDFFhas1YFVBG+ycLFKXK8DSrYAkVlULon7TlqSyD8lA9QvlYIZXX82zNge hvEbggDALd6lauNavas/qDqh589AtlQ83eK0A01p06rZvzBJhQjXMpYJneVtXN1rfCt+ qDgFo4/tFVhT2uwb5JBnRxovfyJLSYuUUQtDZP6wxKirET2j9iPwwkMzNt2zg20s2R3A MQEJdmCBnmvLu4zaajBvAnKtiXhDh+K70FWt1ujFFqUDkPztQJ3fYSO7iB/w3miRCQ3R /sD8JDNgBdmvsHymD+JJaWp3rXqWAbgb7DIzMycxrHsJFqTIx4kzpshxX3pi0fXT0RYr Po0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=ggafvQGznXhhd+7FQh1QNbrzfeGIAZZXNgDiNEFdKqk=; b=XpPi1BufgJJ1Nje+PKm03jxkEkX8D5Q12x51qihzEuFVBgYZwVnlBFvrvQv/ODCjeb gJ19qFLwye0kYnZ25hSj9AxxqC7flseQA1vnxYTBaKCllYaxLs1GN0IQC+DVC2eSyDMJ sRMBCutOQkuz7gp/u6J0z2Leum+ck1EiNlQkzoBEWvpYmMHTDg+GpQKPs4J4iv725z+W orJMthWv+g0j28nItvDoDk37bzKEJJQ8/cd/YTON39aQBepwIE8Mi8J+QKvl0xDl8uCV H4Cera2JcGtT4h0WkPvaAWbpZ3D2QvFbh5jP0a4GsaB8a8IDQ4tRCwj0f450HChyE/EJ 7KsQ== X-Gm-Message-State: AOAM532rLPsgpLmwBsV0pd2jsbMGxKOo0OVknKxuIhSkCBvUaCU5/xB9 hkI/kfHrQuG5DMT6Fb/jVKPrLCCqceRnRg== X-Google-Smtp-Source: ABdhPJwHWLGVFZYpBxadR4jJD1zmQ6CD0sxPNcIv9gj8AGvvAsmP2/sMxrjhri3AQjAAHoT5WYn+Xw== X-Received: by 2002:a17:903:110c:b0:149:9004:4e7c with SMTP id n12-20020a170903110c00b0014990044e7cmr35462398plh.167.1642642346107; Wed, 19 Jan 2022 17:32:26 -0800 (PST) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id g19sm930934pfv.11.2022.01.19.17.32.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jan 2022 17:32:25 -0800 (PST) Subject: [PATCH] RISC-V's ld.so assumes the standard calling convention Date: Wed, 19 Jan 2022 17:31:05 -0800 Message-Id: <20220120013105.30487-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 From: Palmer Dabbelt To: libc-alpha@sourceware.org X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The RISC-V port has always required that lazily bound functions are compatible with the standard calling convention, so document that behavior explicitly. Signed-off-by: Palmer Dabbelt --- There was a long-outstading bug against the psABI that was recently resolved to a different conclusion thus putting us at odds with the spec. There's an on-going discussion about how we're going to handle that divergence, but regardless of which direction that goes we're still in this spot now so we might as well document it. --- manual/platform.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manual/platform.texi b/manual/platform.texi index d5fdc5bd05..9153408966 100644 --- a/manual/platform.texi +++ b/manual/platform.texi @@ -121,6 +121,9 @@ when it is not allowed, the priority is set to medium. @node RISC-V @appendixsec RISC-V-specific Facilities +Functions that are lazily bound must be compatible with the standard calling +convention. + Cache management facilities specific to RISC-V systems that implement the Linux ABI are declared in @file{sys/cachectl.h}.