How to compile newlib as a shared library (.so) ?
Posted: Tue May 29, 2018 2:29 am
Hi,
I have went through building newlib for my OS and followed the below tutorials from OSDev:
https://wiki.osdev.org/OS_Specific_Toolchain (OS Specific Toolchain)
https://wiki.osdev.org/Hosted_GCC_Cross-Compiler (Hosted Cross Compiler)
https://wiki.osdev.org/Porting_Newlib (Porting Newlib)
https://wiki.osdev.org/C_Library (C Library)
I was able to compile and generate executables for my OS against libc.a.
Now I would like to use the shared library approach (libc.so) to be able to load libc once and map it to different processes page tables.
I have searched the internet and OSDev for that but I was not able to find enough information to do that.
Please, if any one was able to do it or has any pointers or directions to documentation for that, I would appreciate sharing such information.
Thanks a lot,
Karim.
I have went through building newlib for my OS and followed the below tutorials from OSDev:
https://wiki.osdev.org/OS_Specific_Toolchain (OS Specific Toolchain)
https://wiki.osdev.org/Hosted_GCC_Cross-Compiler (Hosted Cross Compiler)
https://wiki.osdev.org/Porting_Newlib (Porting Newlib)
https://wiki.osdev.org/C_Library (C Library)
I was able to compile and generate executables for my OS against libc.a.
Now I would like to use the shared library approach (libc.so) to be able to load libc once and map it to different processes page tables.
I have searched the internet and OSDev for that but I was not able to find enough information to do that.
Please, if any one was able to do it or has any pointers or directions to documentation for that, I would appreciate sharing such information.
Thanks a lot,
Karim.