shithub: scc

Download patch

ref: ad9ac13a7fdef7f29cae041c7556f8dacd239958
parent: 08608702436b819d3022aceb2b870e3284228810
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Aug 30 02:44:02 EDT 2018

[lib/crt] Recover the symbol __guard_local for OpenBSD

The compiler is generating these references, and it seems
that it is impossible to get rid of them, so the only solution
is to have it in the crt.

--- a/lib/crt/amd64-sysv-openbsd/crt.s
+++ b/lib/crt/amd64-sysv-openbsd/crt.s
@@ -16,3 +16,8 @@
 	call	main
 	movl    %eax, %edi
 	jmp	exit
+
+	.data
+	.global	__guard_local
+__guard_local:
+	.long	0