Changeset 967e7a1 in mainline for uspace/lib/c/generic/dlfcn.c


Ignore:
Timestamp:
2019-05-26T13:21:50Z (5 years ago)
Author:
Jakub Jermář <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bdca26a
Parents:
a78cdcd
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-05-17 13:04:30)
git-committer:
Jakub Jermář <jakub@…> (2019-05-26 13:21:50)
Message:

Removing exit() from lib rtld

Several functions in the library rtld called
exit() from stdlib when an error occured. This
commit removes those calls and replace it with a
proper failure response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dlfcn.c

    ra78cdcd r967e7a1  
    3535 */
    3636
     37#include <errno.h>
    3738#include <stdio.h>
    3839#include <stdlib.h>
     
    5354        if (m == NULL) {
    5455                m = module_load(runtime_env, path, mlf_local);
    55                 module_load_deps(m, mlf_local);
     56                if (module_load_deps(m, mlf_local) != EOK) {
     57                        return NULL;
     58                }
     59
    5660                /* Now relocate. */
    5761                module_process_relocs(m);
Note: See TracChangeset for help on using the changeset viewer.