From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SUBJ_OBFU_PUNCT_FEW autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 80e8e25a for ; Mon, 3 Feb 2020 11:42:46 +0000 (UTC) Received: (qmail 7695 invoked by uid 550); 3 Feb 2020 11:42:44 -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 7657 invoked from network); 3 Feb 2020 11:42:43 -0000 X-ASG-Debug-ID: 1580730150-0554131e1e7a91e0001-j9k7wl X-Barracuda-Envelope-From: mark@dibsco.co.uk X-Barracuda-Effective-Source-IP: cloud209.unlimitedwebhosting.co.uk[149.255.58.38] X-Barracuda-Apparent-Source-IP: 149.255.58.38 Authentication-Results: cloud209.unlimitedwebhosting.co.uk; spf=pass (sender IP is 104.132.132.97) smtp.mailfrom=mark@dibsco.co.uk smtp.helo=laptop.localnet Received-SPF: pass (cloud209.unlimitedwebhosting.co.uk: connection is authenticated) From: Mark Corbin To: musl@lists.openwall.com Date: Mon, 03 Feb 2020 11:42:30 +0000 X-ASG-Orig-Subj: REG_SP Definition for RISC-V Message-ID: <1815351.tyXQvQ9DpD@laptop> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-PPP-Message-ID: <20200203114230.669925.61308@cloud209.unlimitedwebhosting.co.uk> X-PPP-Vhost: dibsco.co.uk X-Barracuda-Connect: cloud209.unlimitedwebhosting.co.uk[149.255.58.38] X-Barracuda-Start-Time: 1580730150 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 969 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79752 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [musl] REG_SP Definition for RISC-V Hello I'm trying to fix a build issue with libsigsegv [1] for RISC-V when compiling against musl 1.1.24 (under Buildroot). The build fails because the array index 'REG_SP' (for indexing into uc_mcontext.__gregs[]) is not defined in arch/riscv64/bits/signal.h. This constant is defined by glibc in sysdeps/unix/sysv/linux/riscv/sys/ucontext.h I was wondering whether the appropriate fix is just to add '#define REG_SP 2' to the top of arch/riscv64/bits/signal.h ? (Note that there is a REG_SP definition in arch/riscv64/bits/reg.h which isn't being included). Alternatively I could submit a patch to libsigsegv to modify the index into the '__gregs' array to be '2' rather than 'REG_SP', however there could be other glibc compatible RISC-V packages that make use of the 'REG_SP' definition. I'm happy to generate and submit any patches as appropriate. Thanks Mark Corbin [1] http://savannah.gnu.org/projects/libsigsegv/