gcc: Use initarray for ARM64 and RISC-v.

Change-Id: I6695707357f8dba467b09f700e7efe702102a42e
Reviewed-on: https://review.haiku-os.org/c/buildtools/+/4408
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Fredrik Holmqvist 2021-08-29 16:33:52 +02:00 committed by Jérôme Duval
parent 139f4e7c6c
commit 0ff4d6adaf

View File

@ -994,6 +994,7 @@ aarch64*-*-freebsd*)
tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-freebsd"
;;
aarch64*-*-haiku*)
gcc_cv_initfini_array=yes
tm_file="${tm_file} dbxelf.h elfos.h haiku.h haiku-stdint.h"
tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-haiku.h"
tmake_file="${tmake_file} t-haiku aarch64/t-aarch64 aarch64/t-aarch64-haiku"
@ -2104,6 +2105,7 @@ microblaze*-*-elf)
tmake_file="${tmake_file} microblaze/t-microblaze"
;;
riscv*-*-haiku*)
gcc_cv_initfini_array=yes
tm_file="elfos.h haiku.h ${tm_file} riscv/haiku.h haiku-stdint.h"
tmake_file="${tmake_file} t-haiku riscv/t-riscv riscv/t-haiku"
gnu_ld=yes