Changeset 32254d6 in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2025-02-13T10:16:55Z (3 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
9faba42, e43acd3
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/srv/loader/main.c

    ra7a16a2f r32254d6  
    300300
    301301#ifdef CONFIG_RTLD
    302         if (prog_info.env) {
    303                 pcb.tcb = rtld_tls_make(prog_info.env);
    304         } else {
    305                 pcb.tcb = tls_make(prog_info.finfo.base);
    306         }
     302        assert(prog_info.env != NULL);
     303        pcb.tcb = rtld_tls_make(prog_info.env);
    307304#else
    308305        pcb.tcb = tls_make(prog_info.finfo.base);
Note: See TracChangeset for help on using the changeset viewer.