Skip to content

[RISCV] The asm parser does not error on incorrectly spelt @plt on call symbols #135323

@svs-quic

Description

@svs-quic

The asm parser currently parsers something like call symbol@rlt without any error and produces an empty object file. It would be better if we error out in such scenarios.

cat plt.s
tail foo@rlt

bin/llvm-mc --filetype=obj plt.s  -triple riscv32 -o plt.o

bin/llvm-objdump -d plt.o

plt.o:	file format elf32-littleriscv

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions