Skip to content

LLVM's MCParser does not understand .cfi_label directives #97222

Closed
@alexrp

Description

@alexrp
cat test.s
.globl foo
.align 2
.type foo,@function
.cfi_startproc
.cfi_label .Ldummy
.cfi_endprocriscv64-linux-gnu-gcc test.s -c/opt/llvm/bin/clang -target riscv64 test.s -c
test.s:5:1: error: unknown directive
.cfi_label .Ldummy
^/opt/llvm/bin/clang --version
clang version 18.1.6 (https://github.com/llvm/llvm-project 1118c2e05e67a36ed8ca250524525cdb66a55256)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/bin

This is currently a blocker for compiling glibc with Clang for ARC, C-SKY, LoongArch, and RISC-V, as these all make use of .cfi_label in their start.S (example).

Metadata

Metadata

Assignees

Labels

mcMachine (object) code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions