question about function name in bootloader and relative user application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

question about function name in bootloader and relative user application

1,126 次查看
yangbo1
Contributor III

Hello,

If two functions have the same name in the bootloader and relative user application separately(e.g. there is a funciton named "main" in the bootloader, and it exsites in user application too) , is there any error or potential risks?

Thanks for your attention!

1 回复

1,122 次查看
ErichStyger
Senior Contributor V

Hi @yangbo1 ,

no, this is not a problem. Because you are not linking the two parts with a linker: they are like separate applications from a linker point of view.

Only if you link an application and there are two conflicting symbols you will have an issue.

I hope this helps,

Erich