mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/GP-5624_dev747368_gcwritebarrier_flag_dwarf'
This commit is contained in:
commit
ef4e9fee4d
1 changed files with 4 additions and 1 deletions
|
@ -756,9 +756,12 @@ public class GolangSymbolAnalyzer extends AbstractAnalyzer {
|
|||
}
|
||||
// mark the 4 bytes of the flag with a data type and set it to constant mutability.
|
||||
try {
|
||||
// this will overwrite any DWARF discovered struct (that encompasses the flag)
|
||||
// that was placed here, which is necessary to allow the decompiler to determine
|
||||
// that the flag is a constant value.
|
||||
Data flagData = DataUtilities.createData(program, flagAddr,
|
||||
AbstractIntegerDataType.getUnsignedDataType(4, null), 4,
|
||||
ClearDataMode.CLEAR_ALL_UNDEFINED_CONFLICT_DATA);
|
||||
ClearDataMode.CLEAR_ALL_CONFLICT_DATA);
|
||||
MutabilitySettingsDefinition.DEF.setChoice(flagData,
|
||||
MutabilitySettingsDefinition.CONSTANT);
|
||||
markupSession.labelAddress(flagAddr, "runtime.writeBarrier.discovered");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue