[PATCH] D127581: [ELF] Relax R_RISCV_ALIGN

Luís Marques via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 06:13:34 PST 2023


luismarques added inline comments.
Herald added a subscriber: luke.


================
Comment at: lld/ELF/Arch/RISCV.cpp:599
+  if (!isUInt<16>(delta))
+    fatal("section size decrease is too large");
+  sec.bytesDropped = delta;
----------------
@MaskRay I ran into this error when building LLVM with LLD in a RISC-V host. I guess we actually need an int32?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127581



More information about the llvm-commits mailing list