You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go's package runtime/internal/atomic contains references to functions which refer to the current package by its package name alone: src/runtime/internal/atomic/atomic_loong64.s: JMP atomic·Load(SB) src/runtime/internal/atomic/atomic_loong64.s: JMP atomic·Load64(SB) src/runtime/internal/atomic/atomic_loong64.s: JMP atomic·Load64(SB) src/runtime/internal/atomic/atomic_mips64x.s: JMP atomic·Load(SB) src/runtime/internal/atomic/atomic_mips64x.s: JMP atomic·Load64(SB) src/runtime/internal/atomic/atomic_mips64x.s: JMP atomic·Load64(SB) We could only handle unqualified or fully qualified references, like: JMP ·Load64(SB) JMP runtime∕internal∕atomic·Load64(SB) Apparently, all three forms are equally valid. Add a test case and fix it. I checked whether referencing an imported package by its name worked; it does not seem to be the case. This feature appears to be restricted to the current package alone. While here, we only need goPkgPath when we need to call listPackage. Fixes #619. |
2 years ago | |
---|---|---|
.. | ||
asm.txtar | 2 years ago | |
basic.txtar | 3 years ago | |
cgo.txtar | 2 years ago | |
crossbuild.txtar | 2 years ago | |
debugdir.txtar | 2 years ago | |
embed.txtar | 2 years ago | |
goenv.txtar | 3 years ago | |
gogarble.txtar | 2 years ago | |
goversion.txtar | 3 years ago | |
help.txtar | 2 years ago | |
implement.txtar | 2 years ago | |
imports.txtar | 2 years ago | |
init.txtar | 3 years ago | |
ldflags.txtar | 2 years ago | |
linker.txtar | 2 years ago | |
linkname.txtar | 2 years ago | |
literals.txtar | 2 years ago | |
modinfo.txtar | 2 years ago | |
plugin.txtar | 2 years ago | |
position.txtar | 2 years ago | |
reflect.txtar | 2 years ago | |
reverse.txtar | 2 years ago | |
seed-cache.txtar | 2 years ago | |
seed.txtar | 2 years ago | |
syntax.txtar | 2 years ago | |
test.txtar | 3 years ago | |
tiny.txtar | 2 years ago | |
typeparams.txtar | 2 years ago |