[PATCH] D153494: Detect out of range jumps further than 2^32 bytes
Daniel Hoekwater via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 14:04:58 PDT 2023
dhoekwater updated this revision to Diff 533776.
dhoekwater added a comment.
Add tag to commit message
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153494/new/
https://reviews.llvm.org/D153494
Files:
llvm/lib/MC/MCAssembler.cpp
Index: llvm/lib/MC/MCAssembler.cpp
===================================================================
--- llvm/lib/MC/MCAssembler.cpp
+++ llvm/lib/MC/MCAssembler.cpp
@@ -273,7 +273,7 @@
"FKF_IsAlignedDownTo32Bits is only allowed on PC-relative fixups!");
if (IsPCRel) {
- uint32_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset();
+ uint64_t Offset = Layout.getFragmentOffset(DF) + Fixup.getOffset();
// A number of ARM fixups in Thumb mode require that the effective PC
// address be determined as the 32-bit aligned version of the actual offset.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153494.533776.patch
Type: text/x-patch
Size: 586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230622/d8a4e066/attachment.bin>
More information about the llvm-commits
mailing list