]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/ELF: mark internal Sparc functions hidden
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:53:01 +0000 (14:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:53:01 +0000 (14:53 +0100)
This reduces the dynamic symbol table a little and allows the compiler to
be more aggressive about inlining (as it sees fit, of course).

bfd/elfxx-sparc.h

index fe1780777069b074b2d7ac03935930156c792993..26fec7566e81302dbcab677df4cb013488fc74c9 100644 (file)
@@ -86,52 +86,53 @@ struct _bfd_sparc_elf_link_hash_table
    ? (struct _bfd_sparc_elf_link_hash_table *) (p)->hash : NULL)
 
 extern reloc_howto_type *_bfd_sparc_elf_reloc_type_lookup
-  (bfd *, bfd_reloc_code_real_type);
+  (bfd *, bfd_reloc_code_real_type) ATTRIBUTE_HIDDEN;
 extern reloc_howto_type *_bfd_sparc_elf_reloc_name_lookup
-  (bfd *, const char *);
+  (bfd *, const char *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_info_to_howto
-  (bfd *, arelent *, Elf_Internal_Rela *);
+  (bfd *, arelent *, Elf_Internal_Rela *) ATTRIBUTE_HIDDEN;
 extern reloc_howto_type *_bfd_sparc_elf_info_to_howto_ptr
-  (bfd*, unsigned int);
+  (bfd*, unsigned int) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_mkobject
-  (bfd *);
+  (bfd *) ATTRIBUTE_HIDDEN;
 extern struct bfd_link_hash_table *_bfd_sparc_elf_link_hash_table_create
-  (bfd *);
+  (bfd *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_create_dynamic_sections
-  (bfd *, struct bfd_link_info *);
+  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
 extern void _bfd_sparc_elf_copy_indirect_symbol
   (struct bfd_link_info *,
    struct elf_link_hash_entry *,
-   struct elf_link_hash_entry *);
+   struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_check_relocs
   (bfd *, struct bfd_link_info *,
-   asection *, const Elf_Internal_Rela *);
+   asection *, const Elf_Internal_Rela *) ATTRIBUTE_HIDDEN;
 extern asection *_bfd_sparc_elf_gc_mark_hook
   (asection *, struct bfd_link_info *, struct elf_reloc_cookie *,
-   struct elf_link_hash_entry *, unsigned int);
+   struct elf_link_hash_entry *, unsigned int) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_adjust_dynamic_symbol
-  (struct bfd_link_info *, struct elf_link_hash_entry *);
+  (struct bfd_link_info *, struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_omit_section_dynsym
-  (bfd *, struct bfd_link_info *, asection *);
+  (bfd *, struct bfd_link_info *, asection *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_late_size_sections
-  (bfd *, struct bfd_link_info *);
+  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_new_section_hook
-  (bfd *, asection *);
+  (bfd *, asection *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_relax_section
-  (bfd *, struct bfd_section *, struct bfd_link_info *, bool *);
+  (bfd *, struct bfd_section *, struct bfd_link_info *, bool *)
+  ATTRIBUTE_HIDDEN;
 extern int _bfd_sparc_elf_relocate_section
   (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
-   Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
+   Elf_Internal_Rela *, Elf_Internal_Sym *, asection **) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_finish_dynamic_symbol
   (bfd *, struct bfd_link_info *, struct elf_link_hash_entry *,
-   Elf_Internal_Sym *sym);
+   Elf_Internal_Sym *sym) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_finish_dynamic_sections
-  (bfd *, struct bfd_link_info *);
+  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_fixup_symbol
-  (struct bfd_link_info *, struct elf_link_hash_entry *);
+  (struct bfd_link_info *, struct elf_link_hash_entry *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_object_p
-  (bfd *);
+  (bfd *) ATTRIBUTE_HIDDEN;
 extern bfd_vma _bfd_sparc_elf_plt_sym_val
-  (bfd_vma, const asection *, const arelent *);
+  (bfd_vma, const asection *, const arelent *) ATTRIBUTE_HIDDEN;
 extern bool _bfd_sparc_elf_merge_private_bfd_data
-  (bfd *, struct bfd_link_info *);
+  (bfd *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;