[PATCH] D68758: Improve error message for bad SHF_MERGE sections

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 23:52:58 PDT 2019


MaskRay added inline comments.


================
Comment at: lld/ELF/InputFiles.cpp:520
+    fatal(toString(this) + ":(" + name +
+          "): SHF_MERGE section size must be a multiple of sh_entsize");
 
----------------
Make it a bit more detailed, e.g.

section size (1337) must be a multiple of sh_entsize (4)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68758





More information about the llvm-commits mailing list