ref: bc72f16e90932998ac4a404af25ce72efeada9a3
parent: e2c679b435ce2e9a71a4247acaf0c9177cd33c0b
author: Carlin Bingham <[email protected]>
date: Mon Jan 15 18:07:49 EST 2018
Define __guard_local on OpenBSD for linking libc
--- a/rt/start-openbsd.s
+++ b/rt/start-openbsd.s
@@ -60,6 +60,18 @@
movq $1,%rax
syscall
+/*
+ * provide __guard_local for if we are
+ * linking against libc
+ */
+.section ".openbsd.randomdata", "aw"
+ .global __guard_local
+ .hidden __guard_local
+ .type __guard_local, "object"
+ .p2align 3
+__guard_local:
+ .quad 0
+ .size __guard_local, 8
.section ".note.openbsd.ident", "a"
.p2align 2