got some errors, copied files from G5X
$ make rebuild-stubs
make[1]: Entering directory '/home/yiming/Documents/sync/tools/chdk_related/chdk/tools'
finsig_thumb2.c -> finsig_thumb2.o
stubs_load.c -> stubs_load.o
firmware_load_ng.c -> firmware_load_ng.o
firmware_load_ng.c: In function 'firmware_load':
firmware_load_ng.c:2331:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
2331 | fread(fw->buf8, 1, fw->size8, f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ptp_op_names.c -> ptp_op_names.o
finsig_thumb2.o stubs_load.o firmware_load_ng.o ptp_op_names.o -> finsig_thumb2
make[1]: Leaving directory '/home/yiming/Documents/sync/tools/chdk_related/chdk/tools'
rebuild stubs for g3x-100c
make[1]: Entering directory '/home/yiming/Documents/sync/tools/chdk_related/chdk/platform/g3x/sub/100c'
-> stubs_entry.S
failed to get CreateTask args at 0xfc06b430
add_func_name: duplicate name task_LensController existing 0xfc0ab219 != new 0xfc0ab3d1
add_func_name: duplicate name task_LensController existing 0xfc0ab219 != new 0xfc0ab3d1
failed to get CreateTask args at 0xfc0fb4ae
failed to get CreateTask args at 0xfc12ad66
task name name not string at 0xfc2b4e9c
task name name not string at 0xfc2b5f76
failed to get *EventProcTable r0 at 0xfc37daec
failed to get *EventProcTable r0 at 0xfc37daf0
failed to get CreateTask args at 0xfc4823ea
failed to get CreateTask args at 0xfc48d2be
failed to get *EventProcTable r0 at 0xfc5ff56e
add_func_name: duplicate name j_GetZoomLensMechaEdgePosition_FW existing 0xfc5ffbe3 != new 0xfc5fffcf
add_func_name: duplicate name j_GetZoomLensMechaEdgePosition_FW existing 0xfc5ffbe3 != new 0xfc5fffcf
add_func_name: duplicate name GetLoopGainCalcData_FW existing 0xfc601149 != new 0xfc616481
add_func_name: duplicate name GetLoopGainCalcData_FW existing 0xfc601149 != new 0xfc616481
add_func_name: duplicate name SetVcmParamPLF_FW existing 0xfc605745 != new 0xfc60575b
add_func_name: duplicate name SetVcmParamLPF2_FW existing 0xfc605771 != new 0xfc605787
add_func_name: duplicate name GetVcmParamPLF_FW existing 0xfc60579d != new 0xfc6057b9
add_func_name: duplicate name GetVcmParamLPF2_FW existing 0xfc6057d5 != new 0xfc6057f1
add_func_name: duplicate name SetVcmParamPLF_FW existing 0xfc605745 != new 0xfc60575b
add_func_name: duplicate name SetVcmParamLPF2_FW existing 0xfc605771 != new 0xfc605787
add_func_name: duplicate name GetVcmParamPLF_FW existing 0xfc60579d != new 0xfc6057b9
add_func_name: duplicate name GetVcmParamLPF2_FW existing 0xfc6057d5 != new 0xfc6057f1
Time to generate stubs 2.14 seconds
ERROR! There are unresolved addresses in 'stubs_entry.S' (g3x-100c) for the following names:
SetParameterData
Please, add them into 'stubs_entry_2.S' manually!
make[1]: *** [../../../makefile_sub.inc:134: stubs_entry.S] Error 1