Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74c22923 authored by Kiyoung Kim's avatar Kiyoung Kim
Browse files

Run linkerconfig from init process

Create linkerconfig tmpfs mount and create ld.config.txt using
linkerconfig during init

Bug: 135004088
Test: m -j & tested from device
Change-Id: Iea30259871ef26d6c04beebf42b17ba7b494db0d
parent c538656d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -38,6 +38,13 @@ on early-init
    # Allow up to 32K FDs per process
    setrlimit nofile 32768 32768

    # Create directory to keep ld.config.txt
    mkdir /dev/linkerconfig 0755

    # Generate ld.config.txt for early executed processes
    exec -- /system/bin/linkerconfig --target /dev/linkerconfig/ld.config.txt
    chmod 444 /dev/linkerconfig/ld.config.txt

    start ueventd

    # Run apexd-bootstrap so that APEXes that provide critical libraries