Discovery: Rebuild segmented addr meta data in concretizeAbsCodePointers

This commit is contained in:
Jason Dagit 2017-07-07 13:23:40 -07:00
parent 0c3c935b7b
commit 501a24c47a

View File

@ -101,9 +101,10 @@ concretizeAbsCodePointers mem (FinSet s) =
, Just sa <- [absoluteAddrSegment mem (fromInteger a)]
, Perm.isExecutable (segmentFlags (addrSegment sa))
]
concretizeAbsCodePointers _ (CodePointers s _) =
concretizeAbsCodePointers mem (CodePointers s _) =
[ sa
| sa <- Set.toList s
| a <- Set.toList s
, Just sa <- [absoluteAddrSegment mem (_addrOffset a)]
, Perm.isExecutable (segmentFlags (addrSegment sa))
]
-- FIXME: this is dangerous !!