Index: head/contrib/gcc/config/riscv64/freebsd.h =================================================================== --- head/contrib/gcc/config/riscv64/freebsd.h +++ head/contrib/gcc/config/riscv64/freebsd.h @@ -0,0 +1,6 @@ +/* $FreeBSD$ */ + +#undef INIT_SECTION_ASM_OP +#undef FINI_SECTION_ASM_OP +#define INIT_ARRAY_SECTION_ASM_OP "\t.section\t.init_array,\"aw\",%init_array" +#define FINI_ARRAY_SECTION_ASM_OP "\t.section\t.fini_array,\"aw\",%fini_array" Index: head/contrib/gcc/config/riscv64/riscv64.h =================================================================== --- head/contrib/gcc/config/riscv64/riscv64.h +++ head/contrib/gcc/config/riscv64/riscv64.h @@ -0,0 +1 @@ +/* $FreeBSD$ */