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>
Fri, 2 Feb 2018 12:59:34 +0000 (13:59 +0100)
commita9a43f3d791da40893832616e79bbeed198a1ddb
tree9618568ffca2d3670cd6a140525a2db42a9d7f2a
parentab44f8fc0df35035c4bef316df48dd3764fec716
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>
scripts/bundle-libraries.sh