]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
go: Always pass interpreter to linker
authorJoerg Vehlow <joerg.vehlow@aox.de>
Mon, 11 Apr 2022 12:35:20 +0000 (14:35 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Apr 2022 13:14:14 +0000 (14:14 +0100)
commit6b54215074d7f3dbba07f096f16b9c0acf51527c
treeaac988f85b044c4ec9cc0b89e0645c7c081bb7d9
parentaebf611b2a9f4c3a563b3a636c46ef239fe4daf3
go: Always pass interpreter to linker

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.
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.

Signed-off-by: Joerg Vehlow <joerg.vehlow@aox.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/go.bbclass