Define elf_backend_add_symbol_hook for Intel MCU
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 6 May 2016 15:28:27 +0000 (08:28 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 6 May 2016 15:28:27 +0000 (08:28 -0700)
elf_backend_add_symbol_hook is undefined for FreeBSD.  Define it for
Intel MCU to support STB_GNU_UNIQUE for Intel MCU and NaCl.

* elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
MCU.

bfd/ChangeLog
bfd/elf32-i386.c

index 093d7f57a1ddce7c3776d351133198b6f65eafd2..c6a51c4d4e53d58dddc84e1a415c4301a53b661f 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
+       MCU.
+
 2016-05-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
index 483146b1a5a962c8207ecd9084f90ad2afbf0564..df08dd4ff3e59f70e4f1e8cdab23a6aae187a240 100644 (file)
@@ -6053,6 +6053,9 @@ elf32_iamcu_elf_object_p (bfd *abfd)
 #undef  elf_backend_strtab_flags
 #undef  elf_backend_copy_special_section_fields
 
+#undef elf_backend_add_symbol_hook
+#define elf_backend_add_symbol_hook    elf_i386_add_symbol_hook
+
 #include "elf32-target.h"
 
 /* Restore defaults.  */