On Mon, Apr 11, 2022 at 6:30 AM Jose Quaresma <quaresma.jose@...> wrote:
J?rg Vehlow <lkml@...> escreveu no dia segunda, 11/04/2022 à(s) 13:35:
From: Joerg Vehlow <joerg.vehlow@...>
When gos internal linker is used, it uses hardcoded paths to the interpreter (dynamic linker). For x86_64 this hardcoded path is /lib64/ld-linux-x86-64.so.2, but yocto's default dynamic linker path is /lib64/ld-linux-x86-64.so.2.
Is this correct? The first path is the seme one of the second.
its a typo, Sadly we do differ in baselib naming convention on x86_64 ( without multilib ) compared to other distributions which are inherently multilib and use /lib64 OE instead uses /lib when multilib is not enabled but lib64/ when multilib is enabled.
Jose
Most of the time, the internal linker is not used and binutils linker sets the correct path, but sometimes the internal linker is used and the resulting binary will not work on x86_64.
To ensure the path is always correct, pass it to the linker.