Skip to content

correctly handle ELF interpreter

ldd contains a predefined list of ELF interpreters which are checked in turn for their compatibility with the inspected binary. If the compatible interpreter does not match the one recorded inside the binary a line like the following is emitted:

/lib/ld-linux.so.2 => /usr/lib/ld-linux.so.2 (0xecf8b000)

Here the first part is the path as recorded in the ELF binary and the second path is from the hardcoded list inside ldd. The current logic inside make-tiny-image.py adds /usr/lib/ld-linux.so.2 into the image. This does not work as the kernel will try to use /lib/ld-linux.so.2.

Adapt the logic to use the first part if it's a file path.

Signed-off-by: Thomas Weißschuh thomas.weissschuh@linutronix.de

Merge request reports

Loading