diff options
author | Nick Clifton <nickc@redhat.com> | 2005-12-23 12:29:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-12-23 12:29:36 +0000 |
commit | 12ac1cf5374e06e54207ad961bcd4b721d5843b5 (patch) | |
tree | b5ed8c6fdd5845c4aec07eaa58e39620ef87a8fe /bfd/elf-bfd.h | |
parent | 69d246d9338a35e64b2244835ac6e77164be668a (diff) | |
download | gdb-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/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 5 |
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) |