The RTEMS Target link editor is a C module you link to the RTEMS kernel to provide the dlopen, dlclose etc family of calls. This code is a stand alone project:
dlopen
dlclose