aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.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/elf-bfd.h
parent69d246d9338a35e64b2244835ac6e77164be668a (diff)
downloadfsf-binutils-gdb-12ac1cf5374e06e54207ad961bcd4b721d5843b5.zip
fsf-binutils-gdb-12ac1cf5374e06e54207ad961bcd4b721d5843b5.tar.gz
fsf-binutils-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/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index f957283..18ccdb5 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -883,6 +883,11 @@ struct elf_backend_data
(struct elf_link_hash_entry *, const Elf_Internal_Sym *, bfd_boolean,
bfd_boolean);
+ /* Decide whether an undefined symbol is special and can be ignored.
+ This is the case for OPTIONAL symbols on IRIX. */
+ bfd_boolean (*elf_backend_ignore_undef_symbol)
+ (struct elf_link_hash_entry *);
+
/* Emit relocations. Overrides default routine for emitting relocs,
except during a relocatable link, or if all relocs are being emitted. */
bfd_boolean (*elf_backend_emit_relocs)