⛏️ index : buildtools.git

author Simon South <simon@simonsouth.net> 2019-08-11 12:57:10.0 -04:00:00
committer waddlesplash <waddlesplash@gmail.com> 2019-08-11 19:01:15.0 +00:00:00
commit
86f02e2a45ee46f45e674f56e6147e4245172662 [patch]
tree
2059e9361b32271ff212d34aa5fdd6887861bd46
parent
56d94c3a719296abace2ace7ad80aa45a95bd86a
download
86f02e2a45ee46f45e674f56e6147e4245172662.tar.gz

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 <rene@gollent.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>

Diff

 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
+++ a/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"