Skip to content

Commit 487ed2a

Browse files
committed
x86: Ensure global memory is immutable
1 parent 9a6f948 commit 487ed2a

File tree

1 file changed

+1
-1
lines changed
  • src/SAWScript/Crucible/LLVM

1 file changed

+1
-1
lines changed

src/SAWScript/Crucible/LLVM/X86.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ initialState sym opts sc cc elf relf ms globs maxAddr = do
507507
, globalEnd . fst <$> globs
508508
, allocGlobalEnd <$> ms ^. MS.csGlobalAllocs
509509
]
510-
(base, mem) <- C.LLVM.doMalloc sym C.LLVM.GlobalAlloc C.LLVM.Mutable
510+
(base, mem) <- C.LLVM.doMalloc sym C.LLVM.GlobalAlloc C.LLVM.Immutable
511511
"globals" emptyMem sz align
512512
pure $ X86State
513513
{ _x86Sym = sym

0 commit comments

Comments
 (0)