[PATCH] D132994: [RISC-V][HWASAN] Don't explicitly load GOT entry to call hwasan mismatch routine

Alexey Baturo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 15 04:55:05 PST 2022


smd added a comment.

I think one of possible solutions for the problem mentioned above might be the following:

- mark __hwasan_tag_mismatch_v2 as .variant_cc directly in asm file
- add support for reading/dumping .variant_cc as emitDirectiveVariantPCS does
- remove setting ELF::STO_RISCV_VARIANT_CC for  __hwasan_tag_mismatch_v2 in RISCVAsmPrinter.cpp

Supposedly (2) should be implemented/committed as a separate patch before this one. I believe I do have it, so I might publish it for the review.

@jrtc27 @luismarques  what do you think of that?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132994/new/

https://reviews.llvm.org/D132994



More information about the llvm-commits mailing list