[PATCH] D128093: [lld-macho] Initial support for Linker Optimization Hints

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 11:07:30 PDT 2022


int3 added inline comments.


================
Comment at: lld/MachO/InputFiles.cpp:528-529
+                        d < std::numeric_limits<int16_t>::min())) {
+        error("Linker optimization hint at offset " + Twine(inputOffset) +
+              " has addresses too far apart");
+        return;
----------------
can we generate an object file that exercises this code path, or does `llvm-mc` refuse to produce one? (same question for the other error conditions)


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

https://reviews.llvm.org/D128093



More information about the llvm-commits mailing list