This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Define elf_backend_add_symbol_hook for Intel MCU
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 6 May 2016 15:30:52 -0000
- Subject: [binutils-gdb] Define elf_backend_add_symbol_hook for Intel MCU
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=030e823caf4243a3337c2134a4a2f38490d3cf3d
commit 030e823caf4243a3337c2134a4a2f38490d3cf3d
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri May 6 08:28:27 2016 -0700
Define elf_backend_add_symbol_hook for Intel MCU
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.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elf32-i386.c | 3 +++
2 files changed, 8 insertions(+)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 093d7f5..c6a51c4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 483146b..df08dd4 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -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. */