public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [committed, PATCH] Define elf_backend_add_symbol_hook for Intel MCU
@ 2016-05-06 15:31 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2016-05-06 15:31 UTC (permalink / raw)
  To: binutils

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    | 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.  */
-- 
2.5.5

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-06 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-06 15:31 [committed, PATCH] Define elf_backend_add_symbol_hook for Intel MCU H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).