cmd/asm: 386 assembler silently drops indices when indexing symbols #41286
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Create an assembly file with the following content, assemble it for 386:
Then, dump the resulting object file.
What did you expect to see?
Something like
What did you see instead?
It appears that the index register has been dropped silently. Please either fail this kind of code during assembly or add support for indexing into global symbols.
The text was updated successfully, but these errors were encountered: