Some of the inline assembly macros used in e.g. https://github.com/Symbi-OS/Symlib/blob/master/src/L2/sym_lib_page_fault.c#L217 are complicated and possibly error prone. If they could be expressed more clearly in standalone assembly code, it might be worth the refactor. A simple example here: https://github.com/Symbi-OS/LinuxPrototypes/tree/master/dynam_asm shows how asm and shared libs can be linked.