Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/link: SDYNIMPORT with external linking produces unhandled/incorrect relocations on openbsd/amd64 #42671
When using SDYNIMPORT with external linking on
The following diff "fixes" the issue:
And allows us to produce a working binary:
Without the second chunk we end up producing a binary with:
And the intermediate linker
In otherwords, using
Building with the following does indeed fix the issue:
Not sure if something else relies on GOTPCREL though (as you said, it seems strange).
How should we proceed here?