gcc linking specific file in archive

╄→尐↘猪︶ㄣ 提交于 2020-12-15 04:57:51

问题


Have a library os.lib which has many objects archived like kernel.o semaphor.o..etc

need to place the specific section of object file in os.lib to a flash location using gcc linker script

SECTIONS
{
   .text : { os.lib:kernel.o(.text) }
}

But does not seem to work! ld throws error kernel.o not found.

tried this and also archive:file mentioned in this does not work tool chain: arm-none-eabi-ld

来源:https://stackoverflow.com/questions/65092280/gcc-linking-specific-file-in-archive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!