]> Cypherpunks repositories - gostls13.git/commit
test: fix ABI mismatch in fixedbugs/issue19507
authorAustin Clements <austin@google.com>
Tue, 13 Nov 2018 23:32:55 +0000 (18:32 -0500)
committerAustin Clements <austin@google.com>
Tue, 13 Nov 2018 23:44:52 +0000 (23:44 +0000)
commita3c70e28edf7f0202ab35b64c9d83644761cf033
treef32fdd8aec6ff5b3d8aeae1bff46abb7bc5a6f78
parent0098f8aeaceb5feec7462ae64f8ce91a473360c1
test: fix ABI mismatch in fixedbugs/issue19507

Because run.go doesn't pass the package being compiled to the compiler
via the -p flag, it can't match up the mainĀ·f symbol from the
assembler with the "func f" stub in Go, so it doesn't produce the
correct assembly stub.

Fix this by removing the package prefix from the assembly definition.

Alternatively, we could make run.go pass -p to the compiler, but it's
nicer to remove these package prefixes anyway.

Should fix the linux-arm builder, which was broken by the introduction
of function ABIs in CL 147160.

Updates #27539.

Change-Id: Id62b7701e1108a21a5ad48ffdb5dad4356c273a6
Reviewed-on: https://go-review.googlesource.com/c/149483
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
test/fixedbugs/issue19507.dir/div_arm.s