File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
volatility3/framework/symbols/linux/utilities Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,11 @@ def _fix_sym_table(
240240 st_other = struct .pack ("B" , sym .st_other )
241241 st_size = struct .pack (st_fmt , sym .st_size )
242242
243- # The order as in the ELF specification
244- sym_data = st_name + st_info + st_other + st_shndx + st_value + st_size
243+ # The order as in the ELF specification. The order is not the same between 32 and 64 bit symbols
244+ if st_fmt == "<I" :
245+ sym_data = st_name + st_value + st_size + st_info + st_other + st_shndx
246+ else :
247+ sym_data = st_name + st_info + st_other + st_shndx + st_value + st_size
245248
246249 # This should never happen regardless of smear or other issues in the data. We build the structure to spec.
247250 if len (sym_data ) != sym_type .size :
You can’t perform that action at this time.
0 commit comments