aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-05-06 08:28:27 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-05-06 08:28:27 -0700
commit030e823caf4243a3337c2134a4a2f38490d3cf3d (patch)
tree8ebf3495519717b3ebf37ce1323da8a3901af7ff /bfd/elf32-i386.c
parent887cf7913771a045a28b8ce43ed78a9a6c1dd2f0 (diff)
downloadgdb-030e823caf4243a3337c2134a4a2f38490d3cf3d.zip
gdb-030e823caf4243a3337c2134a4a2f38490d3cf3d.tar.gz
gdb-030e823caf4243a3337c2134a4a2f38490d3cf3d.tar.bz2
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.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c3
1 files changed, 3 insertions, 0 deletions
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. */