cmd/link: Support buildmode=pie with internal linking on Linux 386 #47949
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, I suppose this is the latest stable version for 386.
What operating system and processor architecture are you using (
go env
)?go env
Outputuname -a
Outputcat /etc/os-release
OutputWhat did you do?
Tried compiling a hello world program with
buildmode=pie
and-linkmode=internal
on a386
machine.What did you expect to see?
I expected the program to get compiled successfully with PIE and internal linking enabled.
What did you see instead?
Build fails with the following error:
For context, as mentioned in #31343, building a program with PIE and internal linking works on amd64.
uname -a
Outputcat /etc/os-release
OutputBuild command:
The compilation is successful, and I have ensured that both PIE and internal linking are enabled.
hardening-check ./hello_world_pie
Outputobjdump -p hello_world_pie
OutputThe text was updated successfully, but these errors were encountered: