ghidra_psx_ldr icon indicating copy to clipboard operation
ghidra_psx_ldr copied to clipboard

Tomb Raider: Chronicles Symbols not fully applied.

Open Gh0stBlade opened this issue 5 years ago • 7 comments
trafficstars

Tomb Raider: Chronicles gets an error when the main binary is analysed.

image

Sample files attached: TRC.zip

Gh0stBlade avatar Feb 20 '20 17:02 Gh0stBlade

Don't you use SYM file, just an original binary?

lab313ru avatar Feb 20 '20 20:02 lab313ru

I use both of course. I get errors when analysing.

Gh0stBlade avatar Feb 20 '20 20:02 Gh0stBlade

This problem happens because "generic_clib/crypto.h/functions" contains a function definition named "m", and this name is also mentioned in SYM file at offset 0x00000000. Ghidra tries to apply a function definition "m" at the offset 0x00000000 and fails.

To fix it I must report it to Ghidra's github, it's not my fault.

lab313ru avatar Feb 22 '20 17:02 lab313ru

https://github.com/NationalSecurityAgency/ghidra/issues/1560

lab313ru avatar Feb 22 '20 17:02 lab313ru

So, if you want some fast fix, rename "m" at 0x00000000 offset to smth else.

lab313ru avatar Feb 22 '20 20:02 lab313ru

Yes i tried that but it also looks like some symbols are still incorrectly applied?

Cheers.

Gh0stBlade avatar Feb 23 '20 19:02 Gh0stBlade

Yeah, it can happen. I'm working on fixing SYM loading.

lab313ru avatar Feb 23 '20 19:02 lab313ru