Do not execute linkerconfig from recovery
Linkerconfig binary itself should be built as static, so size of executable is hard to be reduced. However, this used lots of space from recovery so only small space left in it. To avoid this linker config from recovery should be generated within build time and use prebuilt one. Prebuilt ld.config.txt will be located under /system/etc as before, and init will copy the file into /linkerconfig so we can use same location for both recovery and normal boot. Bug: 146384333 Test: m -j passed && crosshatch bootloader worked with this change Change-Id: I96300f1c8301167234787274820086a4c6ea0e6e
This commit is contained in:
parent
38f07f0ba4
commit
ea2b683f6e
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ on early-init
|
|||
# Set the security context of /postinstall if present.
|
||||
restorecon /postinstall
|
||||
|
||||
# Generate ld.config.txt for recovery processes
|
||||
exec u:r:linkerconfig:s0 -- /system/bin/linkerconfig --target /linkerconfig/ld.config.txt
|
||||
# Copy prebuilt ld.config.txt into linkerconfig directory
|
||||
copy /system/etc/ld.config.txt /linkerconfig/ld.config.txt
|
||||
chmod 444 /linkerconfig/ld.config.txt
|
||||
|
||||
start ueventd
|
||||
|
|
Loading…
Reference in a new issue