aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-12-23 12:29:36 +0000
committerNick Clifton <nickc@redhat.com>2005-12-23 12:29:36 +0000
commit12ac1cf5374e06e54207ad961bcd4b721d5843b5 (patch)
treeb5ed8c6fdd5845c4aec07eaa58e39620ef87a8fe /bfd/elfxx-target.h
parent69d246d9338a35e64b2244835ac6e77164be668a (diff)
downloadgdb-12ac1cf5374e06e54207ad961bcd4b721d5843b5.zip
gdb-12ac1cf5374e06e54207ad961bcd4b721d5843b5.tar.gz
gdb-12ac1cf5374e06e54207ad961bcd4b721d5843b5.tar.bz2
PR 1150
* elf-bfd.h (struct elf_backend_data): New field 'elf_backend_ignore_undef_symbol'. * elfxx-target.h (elf_backend_ignore_undef_symbol): Define to NULL if not already defined. (elfNN_bed): Initialise the elf_backend_ignore_undef_symbol field. * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): New function. * elfxx-mips.h (elf_backend_ignore_undef_symbol): Define and prototype. * elflink.c (elf_link_output_extsym): Check elf_backend_ignore_undef_symbol before reporting an undefined symbol in a shared library.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 2c9aa19..d8a15cf 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -420,6 +420,9 @@
#ifndef elf_backend_merge_symbol_attribute
#define elf_backend_merge_symbol_attribute NULL
#endif
+#ifndef elf_backend_ignore_undef_symbol
+#define elf_backend_ignore_undef_symbol NULL
+#endif
#ifndef elf_backend_emit_relocs
#define elf_backend_emit_relocs _bfd_elf_link_output_relocs
#endif
@@ -592,6 +595,7 @@ static const struct elf_backend_data elfNN_bed =
elf_backend_copy_indirect_symbol,
elf_backend_hide_symbol,
elf_backend_merge_symbol_attribute,
+ elf_backend_ignore_undef_symbol,
elf_backend_emit_relocs,
elf_backend_count_relocs,
elf_backend_grok_prstatus,