In Ghidra, I have an ARM9 binary that in many places stores hard-coded pointers to the same struct at the same location in RAM.
022308c8 a0 9f 23 02 undefined4 02239FA0h
...
02233290 a0 9f 23 02 undefined4 02239FA0h
...
02233838 a0 9f 23 02 undefined4 02239FA0h
I can easily find all/most references to that struct by doing a scalar search (Search > For Scalars...) and I would like to change the data type of all of those matches to be my_struct*
.
In some cases there are too many pointers to the same RAM location to manually change the data type of each within a reasonable amount of time (ex. 1200+ pointers).
Is there any way to have Ghidra automate changing the data types of all of those matching hard-coded pointers?
my_struct*
(using Data >Change Data Type...) works to change a single instance, but currently I would have to do that manually for each of the 1200+ pointers which would probably take several hours to do. I want to know if there is a way to automate changing the data type for 1200+ instances of this pointer.