From 7f4dddb4c0509dfa6a0486022b8053d67ca99f78 Mon Sep 17 00:00:00 2001 From: schulz Date: Tue, 19 Mar 2019 21:18:13 +0000 Subject: [PATCH] adjust relocations for symbols of type "common" too git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@55875 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- tools/crosstools/binutils-2.32-aros.diff | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/crosstools/binutils-2.32-aros.diff b/tools/crosstools/binutils-2.32-aros.diff index dc0af3ebe1..e749c18b14 100644 --- a/tools/crosstools/binutils-2.32-aros.diff +++ b/tools/crosstools/binutils-2.32-aros.diff @@ -160,7 +160,7 @@ diff -ruN binutils-2.32-orig/bfd/configure.ac binutils-2.32/bfd/configure.ac diff -ruN binutils-2.32-orig/bfd/elf-aros.c binutils-2.32/bfd/elf-aros.c --- binutils-2.32-orig/bfd/elf-aros.c 1970-01-01 01:00:00.000000000 +0100 +++ binutils-2.32/bfd/elf-aros.c 2019-03-17 13:43:57.000000000 +0100 -@@ -0,0 +1,89 @@ +@@ -0,0 +1,90 @@ +/* AROS support for ELF + Copyright (C) 2005-2019 Free Software Foundation, Inc. + @@ -219,7 +219,8 @@ diff -ruN binutils-2.32-orig/bfd/elf-aros.c binutils-2.32/bfd/elf-aros.c + { + if (*hash_ptr + && ((*hash_ptr)->root.type == bfd_link_hash_defined -+ || (*hash_ptr)->root.type == bfd_link_hash_defweak) ++ || (*hash_ptr)->root.type == bfd_link_hash_defweak ++ || (*hash_ptr)->root.type == bfd_link_hash_common) + && (*hash_ptr)->root.u.def.section->output_section != NULL) + { + /* Remove relocation dependency on symbol. Use sections only */ -- 2.11.4.GIT