[PATCH] D133863: [RISCV] Add MC support of RISCV zcmt Extension

Xinlong Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 22 03:17:04 PDT 2023


VincentWu added inline comments.


================
Comment at: lld/ELF/InputSection.h:404
 
-static_assert(sizeof(InputSection) <= 152, "InputSection is too big");
+static_assert(sizeof(InputSection) <= 160, "InputSection is too big");
 
----------------
kito-cheng wrote:
> Why we need this change?
because zcmt have add a new elf section `.riscv.jvt`, that extent the size of class `InputSection`. So we have change it.

but I think it will be better if I move this change to https://reviews.llvm.org/D134600 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133863



More information about the llvm-commits mailing list