Skip to content

Commit 54f64fc

Browse files
committed
comparison harness: module alignment
1 parent 842d0e7 commit 54f64fc

File tree

1 file changed

+3
-4
lines changed
  • volatility3/framework/symbols/linux/utilities

1 file changed

+3
-4
lines changed

volatility3/framework/symbols/linux/utilities/modules.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,9 @@ def get_module_address_alignment(
474474
Returns:
475475
The struct module alignment
476476
"""
477-
# FIXME: When dwarf2json/ISF supports type alignments. Read it directly from the type metadata
478-
# Additionally, while 'context' and 'vmlinux_module_name' are currently unused, they will be
479-
# essential for retrieving type metadata in the future.
480-
return 64
477+
# Not L1 cache aligned, but compiler should naturally
478+
# align to the referenced type as a minimum.
479+
return context.modules[vmlinux_module_name].get_type("pointer").size
481480

482481
@classmethod
483482
def list_modules(

0 commit comments

Comments
 (0)