Rename Symbol
- You have a symbol with a meaningless machine generated name.
Rename that symbol into some meaningful.
void loc12345() { ... }
⇓
void do_something() { ... }
Motivation
During compilation and linking, if debugging information is stripped then most information regarding symbol names is lost, with the sole exception of the exported symbols of dynamically linked libraries. Disassemblers normally just create arbitrary symbols names (composed with either a sequence number or the symbol memory address) whenever one is needed. To improve code understanding these symbols should be renamed to a meaningful name, which reflects the program semantics.
Mechanics
- Ensure there is no name conflict.
- Change all occurrences of the symbol in the code to the new symbol name.