summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2017-08-19 17:54:33 +0200
committerJonathan Schleifer <js@heap.zone>2017-08-19 17:54:33 +0200
commit3378f420e6f902addd41c3a61c064eca539de7ab (patch)
treeba00a9df29ad8b0235bce8a17cd6fa427ee626ee
parent9329ac0dfe208b8e908c70d460f4a4417777ac83 (diff)
Fix a linker warning on OpenBSD/SPARC64
-rw-r--r--src/runtime/lookup-asm/lookup-asm-sparc64-elf.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/runtime/lookup-asm/lookup-asm-sparc64-elf.S b/src/runtime/lookup-asm/lookup-asm-sparc64-elf.S
index b72d9d31..e4743092 100644
--- a/src/runtime/lookup-asm/lookup-asm-sparc64-elf.S
+++ b/src/runtime/lookup-asm/lookup-asm-sparc64-elf.S
@@ -52,11 +52,16 @@
ldx [%o2 + %o5], %o2
cmp %o2, 0
- be,pn %xcc, \not_found
+ be,pn %xcc, 0f
nop
retl
mov %o2, %o0
+
+0:
+ mov %o7, %g1
+ call \not_found
+ mov %g1, %o7
.type \name, %function
.size \name, .-\name
.endm