From d4402ecd3bd37555be30ce2b80ef256b8e163b06 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Mon, 9 Sep 2019 16:25:09 +0000 Subject: [PATCH] csu: Add the riscv .init call sequence Reviewed by: br Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D21537 --- lib/csu/riscv/crt.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/csu/riscv/crt.h b/lib/csu/riscv/crt.h index 9f41c2fac0fe..8332092a36ad 100644 --- a/lib/csu/riscv/crt.h +++ b/lib/csu/riscv/crt.h @@ -1,2 +1,9 @@ /* $FreeBSD$ */ -/* Empty so we can include this unconditionally */ + +#ifndef _CRT_H_ +#define _CRT_H_ + +#define HAVE_CTORS +#define INIT_CALL_SEQ(func) "call " __STRING(func) + +#endif