cmd/link/internal/arm: missing relocations for SDYNIMPORT with trampolines #41121
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Compiling the following code on
openbsd/arm
with Go -tip:On openbsd/arm results in a working binary:
However, compiling with
-ldflags=debugtramp=2
results in a non-working binary without relocations:Given this is compiler specific, I would imagine this would be reproducable on
linux/arm
andfreebsd/arm
. I believe the issue is caused by the relocations being lost as part of the trampoline generation.The same issue exists with Go 1.13.9, so it does not appear to be a recent linker regression.
The text was updated successfully, but these errors were encountered: