This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump/llvm-readobj/obj2yaml/yaml2obj] Support STO_RISCV_VARIANT_CC and DT_RISCV_VARIANT_CC
ClosedPublic

Authored by MaskRay on Aug 12 2021, 12:06 AM.

Details

Summary

STO_RISCV_VARIANT_CC marks that a symbol uses a non-standard calling
convention or the vector calling convention.

See https://github.com/riscv/riscv-elf-psabi-doc/pull/190

Diff Detail

Event Timeline

MaskRay created this revision.Aug 12 2021, 12:06 AM
MaskRay requested review of this revision.Aug 12 2021, 12:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 12 2021, 12:06 AM
MaskRay updated this revision to Diff 365926.Aug 12 2021, 12:48 AM

Add symbol dumper to llvm-readobj

Looks like there are two separate features being added here at once. Shouldn't they be each in their own patch?

Also, I think you can delete a.o?

llvm/tools/llvm-readobj/ELFDumper.cpp
1620

clang-format is complaining here for some reason.

MaskRay updated this revision to Diff 367390.Aug 18 2021, 7:51 PM
MaskRay marked an inline comment as done.

remove a.o
fix clang-format

STO_RISCV_VARIANT_CC and DT_RISCV_VARIANT_CC are closely related.
I think placing them together should be fine.

This revision is now accepted and ready to land.Aug 19 2021, 12:34 AM