LanHikari22 / C-ROM-Linker

This is a C ROM Linker that essentially takes a relocatable combined object file of a C project and injects all global variables and functions from the object file into the ROM file! You can compile and link your C project directly into a game ROM! This is currently only supporting the ARM7TDMI architecture.
1 stars 0 forks source link

Static variables and function static variables are not supported #4

Open LanHikari22 opened 6 years ago

LanHikari22 commented 6 years ago

This is because they are treated differently in the combined relocatable object file. They do not have a type OBJECT like other global variables. They have a type of NOTYPE. Further, function static variables also have a strange syntax to their naming. .4158 for example, or something similar. That needs to be decoded to figure out how to deal with those variables.