0

I encountered the following 2 instructions while reversing Tricore assembly:

2 instructions reference

These 2 instructions load the final address: 0x804A9474. Where a global symbol resides.
Is there a way to hint Ghidra the global symbol is located calculated address? (For example like Ctrl+R in IDA)

1

1 Answer 1

1

The default hotkey for this is 'R', which is mapped to "Add/Edit References". You can also reach this menu by right-clicking in the Listing view on one of these instructions and selecting References->Add/Edit.... This will open the References Editor, from which you can add a new reference using the green plus icon for "Add Forward Reference". You will have to manually specify the address this way, unfortunately. The type of reference will depend on whether this is data, a function address, or something else, and will affect what the decompiler does with this new reference information, if anything.

In many cases the decompiler automatically takes care of calculating the final value for you, though it probably won't create an explicit reference. I've seen this happen for other architectures, but have not specifically tried with Tricore.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.