Changeset 32254d6 in mainline for uspace/lib/c/generic/libc.c


Ignore:
Timestamp:
2025-02-13T10:16:55Z (7 days ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
286c4b0, f455de0
Parents:
a7a16a2f
git-author:
Matěj Volf <git@…> (2025-02-13 10:16:55)
git-committer:
GitHub <noreply@…> (2025-02-13 10:16:55)
Message:

init RTLD runtime at load time even for statically linked binaries (#242)

init RTLD runtime at load time even for statically linked binaries

File:
1 edited

Legend:

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

    ra7a16a2f r32254d6  
    9696
    9797#ifdef CONFIG_RTLD
    98         if (__pcb != NULL && __pcb->rtld_runtime != NULL) {
     98        if (__pcb == NULL) {
     99                /*
     100                 * A binary loaded by kernel, not the loader.
     101                 * Noop - code loaded by kernel doesn't need RTLD.
     102                 */
     103        } else {
     104                assert(__pcb->rtld_runtime != NULL);
    99105                runtime_env = (rtld_t *) __pcb->rtld_runtime;
    100         } else {
    101                 if (rtld_init_static() != EOK)
    102                         abort();
    103106        }
    104107#endif
Note: See TracChangeset for help on using the changeset viewer.