diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2003-10-14 22:43:10 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2003-10-14 22:43:10 +0000 |
commit | 9bf7216d00061b535246359942c3a99531a9e41b (patch) | |
tree | a78e4e05886404239bb6d24acc8ee5532821df90 /bfd/elflink.h | |
parent | b614a7028d7381e4ec589c60aa7edab0d1d60ada (diff) | |
download | gdb-9bf7216d00061b535246359942c3a99531a9e41b.zip gdb-9bf7216d00061b535246359942c3a99531a9e41b.tar.gz gdb-9bf7216d00061b535246359942c3a99531a9e41b.tar.bz2 |
* elf-bfd.h (struct elf_backend_data): New function pointer member
elf_backend_merge_symbol_attribute.
* elflink.h (elf_link_add_object_symbols): Adjust call to
elf_backend_merge_symbol_attribute if the backend defined it.
* elfxx-target.h (elf_backend_merge_symbol_attribute): New macro.
(elfNN_bed): Add that to the initializer.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index bd94cbf..71fdbaa 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1261,6 +1261,10 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) /* If st_other has a processor-specific meaning, specific code might be needed here. We never merge the visibility attribute with the one from a dynamic object. */ + if (bed->elf_backend_merge_symbol_attribute) + (*bed->elf_backend_merge_symbol_attribute) (h, isym, definition, + dynamic); + if (isym->st_other != 0 && !dynamic) { unsigned char hvis, symvis, other, nvis; |