diff options
author | Jiyong Park <jiyong@google.com> | 2017-01-31 17:32:46 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2017-03-13 08:55:23 +0900 |
commit | 1daa18e73714150e26c4380840c793e406c11095 (patch) | |
tree | 3f754c399c90be73ac6489a2275489a1a8875726 /libc/malloc_debug/malloc_debug.cpp | |
parent | 6e528631d1eb4779dc93098c696c3a18e6bcecfb (diff) |
linker: add more directories to default lib paths
Due to b/33681361, libraries are now installed to different paths than
before. In order for linker to load libraries from the new paths, the
default lib paths are updated.
However, this patch is temporary; different paths must be used depending
on whether the process is executing vendor executable or framework
executable. For example, vendor executable should not be able to access
/system/lib/, which is for framework-internal libs. Similarly,
framework executables should not be able to access /vendor/lib.
We have several solutions (linker namespace and DT_RUNPATH) to support
the scenario, but haven't concluded which is better. Furthermore, if we
restrict the search path right now, it will break many parts of Android
that are not yet prepared for the restriction. So, until then, we
temporarily use the single search path for both framework/vendor
executables.
Test: build & run
Change-Id: I806e9b4379bce96653b1dd3354b9f4801abb0411
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions