]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/ELF: mark internal NDS32 functions hidden
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:51:38 +0000 (14:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:51:38 +0000 (14:51 +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/elf32-nds32.h

index 151c96553474f026995f968e769bee65c71bacc3..f18cc90c2d5813a2c9f71fd183b49f3505b9b78c 100644 (file)
@@ -90,14 +90,18 @@ struct section_id_list_t
 };
 
 extern struct section_id_list_t *elf32_nds32_lookup_section_id
-  (int, struct section_id_list_t **);
-extern int elf32_nds32_check_relax_group (bfd *, asection *);
-extern int elf32_nds32_unify_relax_group (bfd *, asection *);
-extern int nds32_elf_unify_tls_model (bfd *, asection *, bfd_byte *,
-                                     struct bfd_link_info *);
-
-extern int        nds32_convert_32_to_16 (bfd *, uint32_t, uint16_t *, int *);
-extern int        nds32_convert_16_to_32 (bfd *, uint16_t, uint32_t *);
+  (int, struct section_id_list_t **) ATTRIBUTE_HIDDEN;
+extern int elf32_nds32_check_relax_group
+  (bfd *, asection *) ATTRIBUTE_HIDDEN;
+extern int elf32_nds32_unify_relax_group
+  (bfd *, asection *) ATTRIBUTE_HIDDEN;
+extern int nds32_elf_unify_tls_model
+  (bfd *, asection *, bfd_byte *, struct bfd_link_info *) ATTRIBUTE_HIDDEN;
+
+extern int nds32_convert_32_to_16
+  (bfd *, uint32_t, uint16_t *, int *) ATTRIBUTE_HIDDEN;
+extern int nds32_convert_16_to_32
+  (bfd *, uint16_t, uint32_t *) ATTRIBUTE_HIDDEN;
 extern void       bfd_elf32_nds32_set_target_option (struct bfd_link_info *,
                                                      int, int, FILE *,
                                                      int, int, int);