[PATCH] D47602: Correct aligment computation for shared object symbols

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 5 09:26:33 PDT 2018


ruiu added inline comments.


================
Comment at: ELF/InputFiles.cpp:904
 
-  if (Ret > UINT32_MAX)
-    error(toString(this) + ": alignment too large: " +
-          CHECK(Sym.getName(this->StringTable), this));
-  return Ret;
+  return (Ret > UINT32_MAX) ? 0 : Ret;
 }
----------------
I'm not too excited about change. This error message was to catch a nearly-broken object file that has insanely large alignment requirement. Now you are making a change to ignore such object file. 


https://reviews.llvm.org/D47602





More information about the llvm-commits mailing list