Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ea56098 in mainline


Ignore:
Timestamp:
2017-03-10T20:46:16Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
35b7d86e
Parents:
1701a24d
Message:

Set VFS root for loader

This is important for the dynamically linked binaries that are loaded
from the file system by the loader. In other words, the loader needs
to know the VFS root before it can load the dynamically linked libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r1701a24d rea56098  
    261261        }
    262262
     263        /*
     264         * We need to set the root early for dynamically linked binaries so
     265         * that the loader can use it too.
     266         */
     267        if (str_cmp(name, "root") == 0)
     268                vfs_root_set(file);
     269
    263270        inbox[inbox_entries].name = name;
    264271        inbox[inbox_entries].file = file;
Note: See TracChangeset for help on using the changeset viewer.