[binutils-gdb] bfd/ELF: mark internal NDS32 functions hidden
Jan Beulich
jbeulich@sourceware.org
Fri Nov 7 13:55:59 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf4128d0cc6d23f741d9d2d1fc17aad9dd1f936e
commit bf4128d0cc6d23f741d9d2d1fc17aad9dd1f936e
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Nov 7 14:51:38 2025 +0100
bfd/ELF: mark internal NDS32 functions hidden
This reduces the dynamic symbol table a little and allows the compiler to
be more aggressive about inlining (as it sees fit, of course).
Diff:
---
bfd/elf32-nds32.h | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/bfd/elf32-nds32.h b/bfd/elf32-nds32.h
index 151c9655347..f18cc90c2d5 100644
--- a/bfd/elf32-nds32.h
+++ b/bfd/elf32-nds32.h
@@ -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);
More information about the Binutils-cvs
mailing list