> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/risc-v-soc/c-library-compile-magic.md).

# C Library Compile Magic

<https://sca.uwaterloo.ca/coldfire/gcc-doc/docs/porting_1.html>

<https://stackoverflow.com/questions/51656838/attribute-weak-and-static-libraries>

<https://stackoverflow.com/questions/51656838/attribute-weak-and-static-libraries>
