From 86f02e2a45ee46f45e674f56e6147e4245172662 Mon Sep 17 00:00:00 2001 From: Simon South Date: Sun, 11 Aug 2019 12:57:10 -0400 Subject: [PATCH] gcc: Use correct linker emulation on arm Among other things this ensures the TARGET2_TYPE linker option is set correctly, preventing "unresolvable R_ARM_REL32 relocation" errors at link time. Fixes #15122. Change-Id: Id4c6e97cc1739ecfac0f7cd0ec93927750f1b313 Reviewed-on: https://review.haiku-os.org/c/1702 Reviewed-by: Rene Gollent Reviewed-by: waddlesplash --- gcc/gcc/config/arm/haiku.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gcc/config/arm/haiku.h b/gcc/gcc/config/arm/haiku.h index d5a4c0d..65d5ee3 100644 --- a/gcc/gcc/config/arm/haiku.h +++ b/gcc/gcc/config/arm/haiku.h @@ -68,6 +68,6 @@ /* If ELF is the default format, we should not use /lib/elf. */ #undef LINK_SPEC -#define LINK_SPEC "%{!o*:-o %b} -m armelf %{!r:-shared} %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}}\ +#define LINK_SPEC "%{!o*:-o %b} -m armelf_haiku %{!r:-shared} %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}}\ %{mbig-endian:-EB} %{mlittle-endian:-EL} -X" -- gitore 0.2.2