Bug 21047 – Linker error: GOT load reloc does not point to a movq instruction

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2020-07-16T09:55:42Z
Last change time
2024-03-01T23:56:55Z
Keywords
backend, pull, wrong-code
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=14814

Comments

Comment #0 by bugzilla — 2020-07-16T09:55:42Z
This happens while running the C++ interop tests / Run (macOS-10.15) tests in the test suite. The trigger is the OPmul case in: https://github.com/dlang/dmd/pull/11423 The other tests for the macOS in the test suite work fine. The complete message is: ---- GOT load reloc does not point to a movq instructionC++ interop tests / Run (macOS-10.15) /Users/runner/work/dmd/dmd/dmd/generated/osx/release/64/dmd -conf= -m64 -Irunnable_cxx -fPIC -L-lstdc++ -L--no-demangle -O -od/Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx -of/Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx/externmangle_8 runnable_cxx/externmangle.d /Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx/externmangle.cpp.o ld: GOT load reloc does not point to a movq instruction in '__Dmain' from /Users/runner/work/dmd/dmd/dmd/test/test_results/runnable_cxx/externmangle_8.o for architecture x86_64 ---- Possibly related to https://issues.dlang.org/show_bug.cgi?id=14814
Comment #1 by razvan.nitu1305 — 2023-04-05T10:59:06Z
The PR that caused this has been merged so this seems to have been fixed.
Comment #2 by dlang-bot — 2024-02-22T21:19:07Z
@ibuclaw updated dlang/dmd pull request #16227 "Fix Bugzilla 24401 - OSX: Linker error: GOT load reloc does not point to a movq instruction" fixing this issue: - Fix Bugzilla 21047 - Linker error: GOT load reloc does not point to a movq instruction https://github.com/dlang/dmd/pull/16227
Comment #3 by dlang-bot — 2024-02-23T04:55:09Z
dlang/dmd pull request #16227 "Fix Bugzilla 24401 - OSX: Linker error: GOT load reloc does not point to a movq instruction" was merged into stable: - 837c0bb7a5f3ab9654c3f6e9e642843f43cbe9a6 by Iain Buclaw: Fix Bugzilla 21047 - Linker error: GOT load reloc does not point to a movq instruction https://github.com/dlang/dmd/pull/16227
Comment #4 by dlang-bot — 2024-03-01T23:56:55Z
dlang/dmd pull request #16276 "merge stable" was merged into master: - 6139abb2020da13f5d905c6dd204b41e39cc861c by Iain Buclaw: Fix Bugzilla 21047 - Linker error: GOT load reloc does not point to a movq instruction https://github.com/dlang/dmd/pull/16276