[PATCH] D67340: [Object] Implement relocation resolver for COFF ARM/ARM64

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 01:24:45 PDT 2019


mstorsjo marked an inline comment as done.
mstorsjo added inline comments.


================
Comment at: lib/Object/RelocationResolver.cpp:443
+  case COFF::IMAGE_REL_ARM_ADDR32:
+    return (S + A) & 0xFFFFFFFF;
+  default:
----------------
ruiu wrote:
> Is it OK to silently wrap-around an overflowed value? I wonder if we should report an error.
Not sure if the base values will be in range where overflow might even be expected.

In any case, this is the exact same existing code matching `resolveCOFFX86` and `resolveCOFFX86_64` (see the context of the diff), just with different arch-specific relocation names.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D67340





More information about the llvm-commits mailing list