rod*_*igo 10
当然有办法.您最好的选择是使用仅适用于您的功能的部分:
int start(void) __attribute__((section(".start")));
int start(void)
{
}
Run Code Online (Sandbox Code Playgroud)
然后在链接器脚本中:
SECTIONS
{
. = 0x1234; // <---- put here your address
.start :
{
*(.start)
}
}
Run Code Online (Sandbox Code Playgroud)
或类似的东西(自从我使用它以来已经很长时间了).
| 归档时间: |
|
| 查看次数: |
8757 次 |
| 最近记录: |