This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Libs, weak references and toolchain magic

Hi,

I am attempting to build a .lib for a hardware abstract layer. Two related questions:

1) The library handles several interrupts (e.g. faults, gpio). However, I find that fault handling is being routed back to the default weak implementations in any program that links with the library. How do I ensure that the library implementations are used by the linker?

2) More generally, are there other factors I should be aware of when producing a .lib that abstracts toolchain "magic" (e.g. RTX, startup_XXX.s, SVC_Table.s) from the main executable?

Thanks,
Chris