问题
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