Changeset ebb1489 in mainline for uspace/lib/c/generic/rtld/module.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (2 months ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/rtld/module.c

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2008 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    343343{
    344344        list_foreach(rtld->modules, modules_link, module_t, m) {
    345                 /* Skip rtld module, since it has already been processed */
    346                 if (m != &rtld->rtld) {
     345                /*
     346                 * Skip rtld module, since it has already been processed.
     347                 * Skip start / main program -- leave it for later
     348                 */
     349                if (m != &rtld->rtld && m != start) {
    347350                        module_process_relocs(m);
    348351                }
    349352        }
     353
     354        /*
     355         * Now that shared libraries have been processed and their variables
     356         * are thus initialized, we can process the main program,
     357         * which may contain COPY relocations that copy value from shared
     358         * library variables to instances of those variables defined
     359         * in the main program.
     360         */
     361        module_process_relocs(start);
    350362}
    351363
Note: See TracChangeset for help on using the changeset viewer.