Home
last modified time | relevance | path

Searched refs:htab (Results 1 – 25 of 257) sorted by relevance

1234567891011

/netbsd/src/external/gpl3/binutils/dist/libiberty/
Dhashtab.c212 #define htab_size(htab) ((htab)->size) argument
215 (htab_size) (htab_t htab) in size_t()
217 return htab_size (htab); in size_t()
222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument
225 (htab_elements) (htab_t htab) in size_t()
227 return htab_elements (htab); in size_t()
261 htab_mod (hashval_t hash, htab_t htab) in htab_mod() argument
263 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod()
270 htab_mod_m2 (hashval_t hash, htab_t htab) in htab_mod_m2() argument
272 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod_m2()
[all …]
/netbsd/src/external/gpl3/gdb/dist/libiberty/
Dhashtab.c212 #define htab_size(htab) ((htab)->size) argument
215 (htab_size) (htab_t htab) in size_t()
217 return htab_size (htab); in size_t()
222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument
225 (htab_elements) (htab_t htab) in size_t()
227 return htab_elements (htab); in size_t()
261 htab_mod (hashval_t hash, htab_t htab) in htab_mod() argument
263 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod()
270 htab_mod_m2 (hashval_t hash, htab_t htab) in htab_mod_m2() argument
272 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod_m2()
[all …]
/netbsd/src/external/gpl3/gcc/dist/libiberty/
Dhashtab.c212 #define htab_size(htab) ((htab)->size) argument
215 (htab_size) (htab_t htab) in size_t()
217 return htab_size (htab); in size_t()
222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument
225 (htab_elements) (htab_t htab) in size_t()
227 return htab_elements (htab); in size_t()
261 htab_mod (hashval_t hash, htab_t htab) in htab_mod() argument
263 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod()
270 htab_mod_m2 (hashval_t hash, htab_t htab) in htab_mod_m2() argument
272 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod_m2()
[all …]
/netbsd/src/external/gpl3/binutils/dist/bfd/
Delfxx-x86.c48 struct elf_x86_link_hash_table *htab; in _bfd_x86_elf_set_tls_module_base() local
56 htab = elf_x86_hash_table (info, bed->target_id); in _bfd_x86_elf_set_tls_module_base()
57 if (htab == NULL) in _bfd_x86_elf_set_tls_module_base()
60 base = htab->tls_module_base; in _bfd_x86_elf_set_tls_module_base()
64 base->u.def.value = htab->elf.tls_size; in _bfd_x86_elf_set_tls_module_base()
87 struct elf_x86_link_hash_table *htab; in elf_x86_allocate_dynrelocs() local
101 htab = elf_x86_hash_table (info, bed->target_id); in elf_x86_allocate_dynrelocs()
102 if (htab == NULL) in elf_x86_allocate_dynrelocs()
105 plt_entry_size = htab->plt.plt_entry_size; in elf_x86_allocate_dynrelocs()
113 if (htab->plt_got != NULL in elf_x86_allocate_dynrelocs()
[all …]
Delf-s390-common.c38 struct elf_s390_link_hash_table *htab = elf_s390_hash_table (info); in s390_gotplt_after_got_p() local
40 if (!htab->elf.sgot || !htab->elf.sgotplt) in s390_gotplt_after_got_p()
43 if (htab->elf.sgot->output_section == htab->elf.sgotplt->output_section) in s390_gotplt_after_got_p()
45 if (htab->elf.sgot->output_offset < htab->elf.sgotplt->output_offset) in s390_gotplt_after_got_p()
50 if (htab->elf.sgot->output_section->vma in s390_gotplt_after_got_p()
51 <= htab->elf.sgotplt->output_section->vma) in s390_gotplt_after_got_p()
62 struct elf_s390_link_hash_table *htab = elf_s390_hash_table (info); in s390_got_pointer() local
65 BFD_ASSERT (htab && htab->elf.hgot); in s390_got_pointer()
67 got_pointer = (htab->elf.hgot->root.u.def.section->output_section->vma in s390_got_pointer()
68 + htab->elf.hgot->root.u.def.section->output_offset); in s390_got_pointer()
[all …]
Delf32-hppa.c399 struct elf32_hppa_link_hash_table *htab in elf32_hppa_link_hash_table_free() local
402 bfd_hash_table_free (&htab->bstab); in elf32_hppa_link_hash_table_free()
413 struct elf32_hppa_link_hash_table *htab; in elf32_hppa_link_hash_table_create() local
414 size_t amt = sizeof (*htab); in elf32_hppa_link_hash_table_create()
416 htab = bfd_zmalloc (amt); in elf32_hppa_link_hash_table_create()
417 if (htab == NULL) in elf32_hppa_link_hash_table_create()
420 if (!_bfd_elf_link_hash_table_init (&htab->etab, abfd, hppa_link_hash_newfunc, in elf32_hppa_link_hash_table_create()
424 free (htab); in elf32_hppa_link_hash_table_create()
429 if (!bfd_hash_table_init (&htab->bstab, stub_hash_newfunc, in elf32_hppa_link_hash_table_create()
435 htab->etab.root.hash_table_free = elf32_hppa_link_hash_table_free; in elf32_hppa_link_hash_table_create()
[all …]
Delf64-s390.c808 struct elf_s390_link_hash_table *htab; in elf_s390_check_relocs() local
822 htab = elf_s390_hash_table (info); in elf_s390_check_relocs()
823 if (htab == NULL) in elf_s390_check_relocs()
853 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, in elf_s390_check_relocs()
862 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
863 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
865 if (!s390_elf_create_ifunc_sections (htab->elf.dynobj, info)) in elf_s390_check_relocs()
927 if (htab->elf.sgot == NULL) in elf_s390_check_relocs()
929 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
930 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
[all …]
Delf-ifunc.c39 struct elf_link_hash_table *htab = elf_hash_table (info); in _bfd_elf_create_ifunc_sections() local
41 if (htab->irelifunc != NULL || htab->iplt != NULL) in _bfd_elf_create_ifunc_sections()
67 htab->irelifunc = s; in _bfd_elf_create_ifunc_sections()
77 htab->iplt = s; in _bfd_elf_create_ifunc_sections()
86 htab->irelplt = s; in _bfd_elf_create_ifunc_sections()
97 htab->igotplt = s; in _bfd_elf_create_ifunc_sections()
119 struct elf_link_hash_table *htab; in _bfd_elf_allocate_ifunc_dyn_relocs() local
153 htab = elf_hash_table (info); in _bfd_elf_allocate_ifunc_dyn_relocs()
183 h->got = htab->init_got_offset; in _bfd_elf_allocate_ifunc_dyn_relocs()
184 h->plt = htab->init_plt_offset; in _bfd_elf_allocate_ifunc_dyn_relocs()
[all …]
Delfxx-tilegx.c33 #define TILEGX_ELF_WORD_BYTES(htab) \ argument
34 ((htab)->bytes_per_word)
37 #define TILEGX_ELF_RELA_BYTES(htab) \ argument
38 ((htab)->bytes_per_rela)
45 #define TILEGX_ELF_R_INFO(htab, in_rel, index, type) \ argument
46 ((htab)->r_info (in_rel, index, type))
48 #define TILEGX_ELF_R_SYMNDX(htab, r_info) \ argument
49 ((htab)->r_symndx(r_info))
51 #define TILEGX_ELF_DTPOFF_RELOC(htab) \ argument
52 ((htab)->dtpoff_reloc)
[all …]
Delf32-i386.c1166 struct elf_x86_link_hash_table *htab; in elf_i386_tls_transition() local
1168 htab = elf_x86_hash_table (info, I386_ELF_DATA); in elf_i386_tls_transition()
1169 if (htab == NULL) in elf_i386_tls_transition()
1175 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, in elf_i386_tls_transition()
1224 struct elf_x86_link_hash_table *htab; in elf_i386_convert_load_reloc() local
1249 htab = elf_x86_hash_table (link_info, I386_ELF_DATA); in elf_i386_convert_load_reloc()
1250 if (htab == NULL || ! is_x86_elf (abfd, htab)) in elf_i386_convert_load_reloc()
1274 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, abfd, in elf_i386_convert_load_reloc()
1366 nop = htab->params->call_nop_byte; in elf_i386_convert_load_reloc()
1367 if (htab->params->call_nop_as_suffix) in elf_i386_convert_load_reloc()
[all …]
Delfxx-sparc.c978 #define SPARC_ELF_PUT_WORD(htab, bfd, val, ptr) \ argument
979 htab->put_word(bfd, val, ptr)
981 #define SPARC_ELF_R_INFO(htab, in_rel, index, type) \ argument
982 htab->r_info(in_rel, index, type)
984 #define SPARC_ELF_R_SYMNDX(htab, r_info) \ argument
985 htab->r_symndx(r_info)
987 #define SPARC_ELF_WORD_BYTES(htab) \ argument
988 htab->bytes_per_word
990 #define SPARC_ELF_RELA_BYTES(htab) \ argument
991 htab->bytes_per_rela
[all …]
Delf64-ppc.c143 #define PLT_ENTRY_SIZE(htab) (htab->opd_abi ? 24 : 8) argument
144 #define LOCAL_PLT_ENTRY_SIZE(htab) (htab->opd_abi ? 16 : 8) argument
147 #define PLT_INITIAL_ENTRY_SIZE(htab) (htab->opd_abi ? 24 : 16) argument
151 #define STK_TOC(htab) (htab->opd_abi ? 40 : 24) argument
155 #define STK_LINKER(htab) (htab->opd_abi ? 32 : 8) argument
221 #define GLINK_PLTRESOLVE_SIZE(htab) \ argument
222 (8u + (htab->opd_abi ? 11 * 4 : htab->has_plt_localentry0 ? 14 * 4 : 13 * 4))
3494 struct ppc_link_hash_table *htab; in link_hash_newfunc() local
3496 htab = (struct ppc_link_hash_table *) table; in link_hash_newfunc()
3497 eh->u.next_dot_sym = htab->dot_syms; in link_hash_newfunc()
[all …]
Delf32-s390.c889 struct elf_s390_link_hash_table *htab; in elf_s390_check_relocs() local
904 htab = elf_s390_hash_table (info); in elf_s390_check_relocs()
931 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, in elf_s390_check_relocs()
940 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
941 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
943 if (!s390_elf_create_ifunc_sections (htab->elf.dynobj, info)) in elf_s390_check_relocs()
1001 if (htab->elf.sgot == NULL) in elf_s390_check_relocs()
1003 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
1004 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
1005 if (!_bfd_elf_create_got_section (htab->elf.dynobj, info)) in elf_s390_check_relocs()
[all …]
/netbsd/src/external/gpl3/gdb/dist/bfd/
Delfxx-x86.c48 struct elf_x86_link_hash_table *htab; in _bfd_x86_elf_set_tls_module_base() local
56 htab = elf_x86_hash_table (info, bed->target_id); in _bfd_x86_elf_set_tls_module_base()
57 if (htab == NULL) in _bfd_x86_elf_set_tls_module_base()
60 base = htab->tls_module_base; in _bfd_x86_elf_set_tls_module_base()
64 base->u.def.value = htab->elf.tls_size; in _bfd_x86_elf_set_tls_module_base()
87 struct elf_x86_link_hash_table *htab; in elf_x86_allocate_dynrelocs() local
101 htab = elf_x86_hash_table (info, bed->target_id); in elf_x86_allocate_dynrelocs()
102 if (htab == NULL) in elf_x86_allocate_dynrelocs()
105 plt_entry_size = htab->plt.plt_entry_size; in elf_x86_allocate_dynrelocs()
113 if (htab->plt_got != NULL in elf_x86_allocate_dynrelocs()
[all …]
Delf-s390-common.c38 struct elf_s390_link_hash_table *htab = elf_s390_hash_table (info); in s390_gotplt_after_got_p() local
40 if (!htab->elf.sgot || !htab->elf.sgotplt) in s390_gotplt_after_got_p()
43 if (htab->elf.sgot->output_section == htab->elf.sgotplt->output_section) in s390_gotplt_after_got_p()
45 if (htab->elf.sgot->output_offset < htab->elf.sgotplt->output_offset) in s390_gotplt_after_got_p()
50 if (htab->elf.sgot->output_section->vma in s390_gotplt_after_got_p()
51 <= htab->elf.sgotplt->output_section->vma) in s390_gotplt_after_got_p()
62 struct elf_s390_link_hash_table *htab = elf_s390_hash_table (info); in s390_got_pointer() local
65 BFD_ASSERT (htab && htab->elf.hgot); in s390_got_pointer()
67 got_pointer = (htab->elf.hgot->root.u.def.section->output_section->vma in s390_got_pointer()
68 + htab->elf.hgot->root.u.def.section->output_offset); in s390_got_pointer()
[all …]
Delf32-hppa.c399 struct elf32_hppa_link_hash_table *htab in elf32_hppa_link_hash_table_free() local
402 bfd_hash_table_free (&htab->bstab); in elf32_hppa_link_hash_table_free()
413 struct elf32_hppa_link_hash_table *htab; in elf32_hppa_link_hash_table_create() local
414 size_t amt = sizeof (*htab); in elf32_hppa_link_hash_table_create()
416 htab = bfd_zmalloc (amt); in elf32_hppa_link_hash_table_create()
417 if (htab == NULL) in elf32_hppa_link_hash_table_create()
420 if (!_bfd_elf_link_hash_table_init (&htab->etab, abfd, hppa_link_hash_newfunc, in elf32_hppa_link_hash_table_create()
424 free (htab); in elf32_hppa_link_hash_table_create()
429 if (!bfd_hash_table_init (&htab->bstab, stub_hash_newfunc, in elf32_hppa_link_hash_table_create()
435 htab->etab.root.hash_table_free = elf32_hppa_link_hash_table_free; in elf32_hppa_link_hash_table_create()
[all …]
Delf-ifunc.c39 struct elf_link_hash_table *htab = elf_hash_table (info); in _bfd_elf_create_ifunc_sections() local
41 if (htab->irelifunc != NULL || htab->iplt != NULL) in _bfd_elf_create_ifunc_sections()
67 htab->irelifunc = s; in _bfd_elf_create_ifunc_sections()
77 htab->iplt = s; in _bfd_elf_create_ifunc_sections()
86 htab->irelplt = s; in _bfd_elf_create_ifunc_sections()
97 htab->igotplt = s; in _bfd_elf_create_ifunc_sections()
119 struct elf_link_hash_table *htab; in _bfd_elf_allocate_ifunc_dyn_relocs() local
153 htab = elf_hash_table (info); in _bfd_elf_allocate_ifunc_dyn_relocs()
183 h->got = htab->init_got_offset; in _bfd_elf_allocate_ifunc_dyn_relocs()
184 h->plt = htab->init_plt_offset; in _bfd_elf_allocate_ifunc_dyn_relocs()
[all …]
Delfxx-tilegx.c33 #define TILEGX_ELF_WORD_BYTES(htab) \ argument
34 ((htab)->bytes_per_word)
37 #define TILEGX_ELF_RELA_BYTES(htab) \ argument
38 ((htab)->bytes_per_rela)
45 #define TILEGX_ELF_R_INFO(htab, in_rel, index, type) \ argument
46 ((htab)->r_info (in_rel, index, type))
48 #define TILEGX_ELF_R_SYMNDX(htab, r_info) \ argument
49 ((htab)->r_symndx(r_info))
51 #define TILEGX_ELF_DTPOFF_RELOC(htab) \ argument
52 ((htab)->dtpoff_reloc)
[all …]
Delf32-i386.c1160 struct elf_x86_link_hash_table *htab; in elf_i386_tls_transition() local
1162 htab = elf_x86_hash_table (info, I386_ELF_DATA); in elf_i386_tls_transition()
1163 if (htab == NULL) in elf_i386_tls_transition()
1169 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, in elf_i386_tls_transition()
1218 struct elf_x86_link_hash_table *htab; in elf_i386_convert_load_reloc() local
1243 htab = elf_x86_hash_table (link_info, I386_ELF_DATA); in elf_i386_convert_load_reloc()
1244 if (htab == NULL || ! is_x86_elf (abfd, htab)) in elf_i386_convert_load_reloc()
1268 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, abfd, in elf_i386_convert_load_reloc()
1360 nop = htab->params->call_nop_byte; in elf_i386_convert_load_reloc()
1361 if (htab->params->call_nop_as_suffix) in elf_i386_convert_load_reloc()
[all …]
Delfxx-sparc.c978 #define SPARC_ELF_PUT_WORD(htab, bfd, val, ptr) \ argument
979 htab->put_word(bfd, val, ptr)
981 #define SPARC_ELF_R_INFO(htab, in_rel, index, type) \ argument
982 htab->r_info(in_rel, index, type)
984 #define SPARC_ELF_R_SYMNDX(htab, r_info) \ argument
985 htab->r_symndx(r_info)
987 #define SPARC_ELF_WORD_BYTES(htab) \ argument
988 htab->bytes_per_word
990 #define SPARC_ELF_RELA_BYTES(htab) \ argument
991 htab->bytes_per_rela
[all …]
Delf64-ppc.c143 #define PLT_ENTRY_SIZE(htab) (htab->opd_abi ? 24 : 8) argument
144 #define LOCAL_PLT_ENTRY_SIZE(htab) (htab->opd_abi ? 16 : 8) argument
147 #define PLT_INITIAL_ENTRY_SIZE(htab) (htab->opd_abi ? 24 : 16) argument
151 #define STK_TOC(htab) (htab->opd_abi ? 40 : 24) argument
155 #define STK_LINKER(htab) (htab->opd_abi ? 32 : 8) argument
221 #define GLINK_PLTRESOLVE_SIZE(htab) \ argument
222 (8u + (htab->opd_abi ? 11 * 4 : htab->has_plt_localentry0 ? 14 * 4 : 13 * 4))
3494 struct ppc_link_hash_table *htab; in link_hash_newfunc() local
3496 htab = (struct ppc_link_hash_table *) table; in link_hash_newfunc()
3497 eh->u.next_dot_sym = htab->dot_syms; in link_hash_newfunc()
[all …]
Delf32-s390.c889 struct elf_s390_link_hash_table *htab; in elf_s390_check_relocs() local
904 htab = elf_s390_hash_table (info); in elf_s390_check_relocs()
931 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, in elf_s390_check_relocs()
940 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
941 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
943 if (!s390_elf_create_ifunc_sections (htab->elf.dynobj, info)) in elf_s390_check_relocs()
1001 if (htab->elf.sgot == NULL) in elf_s390_check_relocs()
1003 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
1004 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
1005 if (!_bfd_elf_create_got_section (htab->elf.dynobj, info)) in elf_s390_check_relocs()
[all …]
Delf64-s390.c808 struct elf_s390_link_hash_table *htab; in elf_s390_check_relocs() local
822 htab = elf_s390_hash_table (info); in elf_s390_check_relocs()
823 if (htab == NULL) in elf_s390_check_relocs()
853 isym = bfd_sym_from_r_symndx (&htab->elf.sym_cache, in elf_s390_check_relocs()
862 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
863 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
865 if (!s390_elf_create_ifunc_sections (htab->elf.dynobj, info)) in elf_s390_check_relocs()
927 if (htab->elf.sgot == NULL) in elf_s390_check_relocs()
929 if (htab->elf.dynobj == NULL) in elf_s390_check_relocs()
930 htab->elf.dynobj = abfd; in elf_s390_check_relocs()
[all …]
/netbsd/src/external/gpl3/gcc/dist/libgomp/
Dhashtab.h69 struct htab { struct
87 typedef struct htab *htab_t; argument
171 htab_size (htab_t htab) in htab_size() argument
173 return htab->size; in htab_size()
179 htab_elements (htab_t htab) in htab_elements() argument
181 return htab->n_elements - htab->n_deleted; in htab_elements()
212 htab_mod (hashval_t hash, htab_t htab) in htab_mod() argument
214 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod()
221 htab_mod_m2 (hashval_t hash, htab_t htab) in htab_mod_m2() argument
223 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod_m2()
[all …]
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/asn1/
Dhash.c44 static Hashentry *_search(Hashtab * htab, /* The hash table */
52 Hashtab *htab; in hashtabnew() local
57 htab = (Hashtab *) malloc(sizeof(Hashtab) + (sz - 1) * sizeof(Hashentry *)); in hashtabnew()
58 if (htab == NULL) in hashtabnew()
62 htab->tab[i] = NULL; in hashtabnew()
64 htab->cmp = cmp; in hashtabnew()
65 htab->hash = hash; in hashtabnew()
66 htab->sz = sz; in hashtabnew()
67 return htab; in hashtabnew()
73 _search(Hashtab * htab, void *ptr) in _search() argument
[all …]

1234567891011