From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CD39D3858C60; Wed, 29 Sep 2021 17:02:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD39D3858C60 From: "wilson at gcc dot gnu.org" To: elfutils-devel@sourceware.org Subject: [Bug backends/27925] riscv backend only provides return value locations for code compiled for LP64D ABI Date: Wed, 29 Sep 2021 17:02:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: backends X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wilson at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2021 17:02:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27925 --- Comment #11 from Jim Wilson --- Userspace is lp64d. The kernel is lp64. You can't create an lp64 binary because there are no lp64 start files or libraries. The kernel can be link= ed because it doesn't require any start files or libraries. The riscv backend= is using the ELF header flags to determine if a binary is lp64 or lp64d, so if= you can't create an lp64 binary you can't run an lp64 test. Similarly, you also can't construct and run lp64f, ilp32, ilp32f, or ilp32d ABI tests for the s= ame reason. The difference between lp64 and lp64d is that FP values are passed in integ= er regs in the first and FP regs in the second. If you aren't testing FP valu= es, then you aren't properly testing the lp64 ABI. Though given that the kerne= l is compiled soft-float, such testing would be sufficient for using elfutils wi= th an lp64 kernel, but not for a lp64 user space. The best way to test the lp64 ABI support is to build an entire linux system from scratch using an lp64 userspace. You can then natively test the lp64 support.=20 Likewise for lp64f, ilp32, ilp32f, and ilp32d. That is outside the scope = of this bug report. --=20 You are receiving this mail because: You are on the CC list for the bug.=