summaryrefslogtreecommitdiff
path: root/rt/start-openbsd.s
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-16 10:04:07 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-16 10:04:07 -0800
commit8f8899df9181abbde98ca28f8f7a8ff39cf17146 (patch)
tree14517ce08006226d026c26b359c0adc80784afe7 /rt/start-openbsd.s
parentac6c06f906d356b0004ed450558dd890c7057fbf (diff)
parent4db2895318842a451a5036652ea9373667a603b1 (diff)
downloadmc-trait-syntax.tar.gz
Merge branch 'clink-obsd' of https://github.com/moreais/mc into trait-syntaxtrait-syntax
Diffstat (limited to 'rt/start-openbsd.s')
-rw-r--r--rt/start-openbsd.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/rt/start-openbsd.s b/rt/start-openbsd.s
index 9fd8610..c0e061a 100644
--- a/rt/start-openbsd.s
+++ b/rt/start-openbsd.s
@@ -60,6 +60,18 @@ _start:
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