build: bundle-libraries.sh: patch bundled ld.so
authorJo-Philipp Wich <jo@mein.io>
Thu, 25 Jan 2018 16:12:29 +0000 (17:12 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 19 Jul 2018 07:12:22 +0000 (09:12 +0200)
commit54c0ef6ff5217cab1deef4ef816ddd63ec837ad3
tree9e343d9f13eebbda88f379cd144894695fc91bcd
parent79c8f2f50bcb2991ba0165a67d8bf3187dbb5bf2
build: bundle-libraries.sh: patch bundled ld.so

Remove references to /etc/, /lib/ and /usr/ from the bundled ld.so
interpreter using simple binary patching.

This is needed to prevent loading host system libraries such as
libnss_compat.so.2 on foreign systems, which may result in ld.so
inconsistency assertions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a9a43f3d791da40893832616e79bbeed198a1ddb)
scripts/bundle-libraries.sh