aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-02-09 08:04:00 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-02-09 08:04:00 +0000
commit174fd7f9556183397625dbfa99ef68ecd325c74b (patch)
tree0343a185c2e517f52888f5d2fb8e11af23d036b7 /bfd/elf-bfd.h
parentedfae06341a087244f28127674aba54f20912885 (diff)
downloadgdb-174fd7f9556183397625dbfa99ef68ecd325c74b.zip
gdb-174fd7f9556183397625dbfa99ef68ecd325c74b.tar.gz
gdb-174fd7f9556183397625dbfa99ef68ecd325c74b.tar.bz2
* bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
* elf.c (swap_out_syms): Use it to decide whether local section symbols should be named. * elfxx-target.h (elf_backend_name_local_section_symbols): New macro. * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare. (elf_backend_name_local_section_symbols): Define. * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index c457a39..6bbacad 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -576,6 +576,11 @@ struct elf_backend_data
int (*elf_backend_get_symbol_type)
(Elf_Internal_Sym *, int);
+ /* Return true if local section symbols should have a non-null st_name.
+ NULL implies false. */
+ bfd_boolean (*elf_backend_name_local_section_symbols)
+ (bfd *);
+
/* A function to do additional processing on the ELF section header
just before writing it out. This is used to set the flags and
type fields for some sections, or to actually write out data for