From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61CBA3858D3C; Fri, 11 Nov 2022 13:16:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61CBA3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668172567; bh=+hSl0aHo8ef5t/rZQBe6bjFWVcyXQ3H3F1HzRkuWxwY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S/N1qxxQGN5kIJrbpe6KaYXLoPVUBm9j+xKQ72pd/aaZPH0nFQG6omPqA8FdTi17u cM5qXc4UKqOdWmaP2oOybH+Mtq6cTrmC36TJQ83hm0bC7Uf5w6ovdKd+jcyLpOFtRB v+n0y501v6V18WUiaLdL9askRReqL1AFcQ1toCdQ= From: "alex.fan.q at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29749] clarify usage of .cfi_label in riscv start.S Date: Fri, 11 Nov 2022 13:16:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex.fan.q at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29749 --- Comment #3 from Alex Fan --- (In reply to Andreas Schwab from comment #2) > .cfi_startproc does *not* start the FDE. Without .cfi_label, the > DW_CFA_undefined directive is part of the CIE. I find llvm assembler puts it into fde without needing .cfi_label. Is cfi_startproc meant to mark start of a function frame and fde is per functi= on? rv64d-dev0 /tmp # llvm-mc --filetype=3Dobj -o=3Dtest.o test.s=20 rv64d-dev0 /tmp # objdump --dwarf test.o test.o: file format elf64-littleriscv Contents of the .eh_frame section: 00000000 0000000000000010 00000000 CIE Version: 1 Augmentation: "zR" Code alignment factor: 1 Data alignment factor: -8 Return address column: 1 Augmentation data: 1b DW_CFA_def_cfa: r2 (sp) ofs 0 00000014 0000000000000010 00000018 FDE cie=3D00000000 pc=3D000000000000001c..0000000000000020 DW_CFA_undefined: r1 (ra) DW_CFA_nop --=20 You are receiving this mail because: You are on the CC list for the bug.=