Home
last modified time | relevance | path

Searched refs:newsect (Results 1 – 25 of 38) sorted by relevance

12

/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dsection.c803 _bfd_generic_new_section_hook (bfd *abfd, asection *newsect) in _bfd_generic_new_section_hook() argument
805 newsect->symbol = bfd_make_empty_symbol (abfd); in _bfd_generic_new_section_hook()
806 if (newsect->symbol == NULL) in _bfd_generic_new_section_hook()
809 newsect->symbol->name = newsect->name; in _bfd_generic_new_section_hook()
810 newsect->symbol->value = 0; in _bfd_generic_new_section_hook()
811 newsect->symbol->section = newsect; in _bfd_generic_new_section_hook()
812 newsect->symbol->flags = BSF_SECTION_SYM; in _bfd_generic_new_section_hook()
814 newsect->symbol_ptr_ptr = &newsect->symbol; in _bfd_generic_new_section_hook()
823 bfd_section_init (bfd *abfd, asection *newsect) in bfd_section_init() argument
825 newsect->id = _bfd_section_id; in bfd_section_init()
[all …]
H A Dlynx-core.c96 asection *newsect; in lynx_core_file_p() local
139 newsect = make_bfd_asection (abfd, ".stack", in lynx_core_file_p()
144 if (!newsect) in lynx_core_file_p()
147 newsect = make_bfd_asection (abfd, ".data", in lynx_core_file_p()
162 if (!newsect) in lynx_core_file_p()
172 newsect = make_bfd_asection (abfd, ".reg", in lynx_core_file_p()
177 if (!newsect) in lynx_core_file_p()
185 newsect = make_bfd_asection (abfd, secname, in lynx_core_file_p()
190 if (!newsect) in lynx_core_file_p()
H A Delf.c600 setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) in setup_group() argument
800 elf_group_name (newsect) = elf_group_name (s); in setup_group()
801 elf_next_in_group (newsect) = elf_next_in_group (s); in setup_group()
802 elf_next_in_group (s) = newsect; in setup_group()
811 elf_group_name (newsect) = gname; in setup_group()
814 elf_next_in_group (newsect) = newsect; in setup_group()
820 elf_next_in_group (shdr->bfd_section) = newsect; in setup_group()
829 if (elf_group_name (newsect) == NULL) in setup_group()
833 abfd, newsect); in setup_group()
1013 asection *newsect; in _bfd_elf_make_section_from_shdr() local
[all …]
H A Dpdp11.c1183 NAME (aout, new_section_hook) (bfd *abfd, asection *newsect) in NAME()
1186 newsect->alignment_power = bfd_get_arch_info(abfd)->section_align_power; in NAME()
1191 && !strcmp (newsect->name, ".text")) in NAME()
1193 obj_textsec(abfd)= newsect; in NAME()
1194 newsect->target_index = N_TEXT; in NAME()
1197 && !strcmp (newsect->name, ".data")) in NAME()
1199 obj_datasec (abfd) = newsect; in NAME()
1200 newsect->target_index = N_DATA; in NAME()
1203 && !strcmp (newsect->name, ".bss")) in NAME()
1205 obj_bsssec (abfd) = newsect; in NAME()
[all …]
H A Daoutx.h1208 NAME (aout, new_section_hook) (bfd *abfd, asection *newsect) in NAME()
1211 newsect->alignment_power = bfd_get_arch_info (abfd)->section_align_power; in NAME()
1215 if (obj_textsec (abfd) == NULL && !strcmp (newsect->name, ".text")) in NAME()
1217 obj_textsec (abfd)= newsect; in NAME()
1218 newsect->target_index = N_TEXT; in NAME()
1220 else if (obj_datasec (abfd) == NULL && !strcmp (newsect->name, ".data")) in NAME()
1222 obj_datasec (abfd) = newsect; in NAME()
1223 newsect->target_index = N_DATA; in NAME()
1225 else if (obj_bsssec (abfd) == NULL && !strcmp (newsect->name, ".bss")) in NAME()
1227 obj_bsssec (abfd) = newsect; in NAME()
[all …]
H A Dmmo.c2137 mmo_new_section_hook (bfd *abfd, asection *newsect) in mmo_new_section_hook() argument
2139 if (!newsect->used_by_bfd) in mmo_new_section_hook()
2143 newsect->used_by_bfd in mmo_new_section_hook()
2145 if (!newsect->used_by_bfd) in mmo_new_section_hook()
2150 newsect->alignment_power = 2; in mmo_new_section_hook()
2151 return _bfd_generic_new_section_hook (abfd, newsect); in mmo_new_section_hook()
H A Dsom.c5402 som_new_section_hook (bfd *abfd, asection *newsect) in som_new_section_hook() argument
5404 if (!newsect->used_by_bfd) in som_new_section_hook()
5408 newsect->used_by_bfd = bfd_zalloc (abfd, amt); in som_new_section_hook()
5409 if (!newsect->used_by_bfd) in som_new_section_hook()
5412 newsect->alignment_power = 3; in som_new_section_hook()
5415 return _bfd_generic_new_section_hook (abfd, newsect); in som_new_section_hook()
H A Delf64-alpha.c1153 asection *newsect; in elf64_alpha_section_from_shdr() local
1172 newsect = hdr->bfd_section; in elf64_alpha_section_from_shdr()
1176 if (!bfd_set_section_flags (newsect, in elf64_alpha_section_from_shdr()
1177 bfd_section_flags (newsect) | SEC_DEBUGGING)) in elf64_alpha_section_from_shdr()
H A Delf64-ia64-vms.c4491 asection *newsect = hdr->bfd_section; in elf64_vms_section_from_shdr() local
4493 if (!bfd_set_section_flags (newsect, in elf64_vms_section_from_shdr()
4494 bfd_section_flags (newsect) | secflags)) in elf64_vms_section_from_shdr()
H A Delf32-ppc.c1333 asection *newsect; in ppc_elf_section_from_shdr() local
1339 newsect = hdr->bfd_section; in ppc_elf_section_from_shdr()
1354 || bfd_set_section_flags (newsect, newsect->flags | flags)); in ppc_elf_section_from_shdr()
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dsection.c817 _bfd_generic_new_section_hook (bfd *abfd, asection *newsect) in _bfd_generic_new_section_hook() argument
819 newsect->symbol = bfd_make_empty_symbol (abfd); in _bfd_generic_new_section_hook()
820 if (newsect->symbol == NULL) in _bfd_generic_new_section_hook()
823 newsect->symbol->name = newsect->name; in _bfd_generic_new_section_hook()
824 newsect->symbol->value = 0; in _bfd_generic_new_section_hook()
825 newsect->symbol->section = newsect; in _bfd_generic_new_section_hook()
826 newsect->symbol->flags = BSF_SECTION_SYM; in _bfd_generic_new_section_hook()
828 newsect->symbol_ptr_ptr = &newsect->symbol; in _bfd_generic_new_section_hook()
837 bfd_section_init (bfd *abfd, asection *newsect) in bfd_section_init() argument
839 newsect->id = _bfd_section_id; in bfd_section_init()
[all …]
H A Dlynx-core.c96 asection *newsect; in lynx_core_file_p() local
139 newsect = make_bfd_asection (abfd, ".stack", in lynx_core_file_p()
144 if (!newsect) in lynx_core_file_p()
147 newsect = make_bfd_asection (abfd, ".data", in lynx_core_file_p()
162 if (!newsect) in lynx_core_file_p()
172 newsect = make_bfd_asection (abfd, ".reg", in lynx_core_file_p()
177 if (!newsect) in lynx_core_file_p()
185 newsect = make_bfd_asection (abfd, secname, in lynx_core_file_p()
190 if (!newsect) in lynx_core_file_p()
H A Dcoffgen.c118 asection *newsect; in make_a_section_from_file() local
190 newsect = bfd_make_section_anyway (abfd, name); in make_a_section_from_file()
191 if (newsect == NULL) in make_a_section_from_file()
194 newsect->vma = hdr->s_vaddr; in make_a_section_from_file()
195 newsect->lma = hdr->s_paddr; in make_a_section_from_file()
196 newsect->size = hdr->s_size; in make_a_section_from_file()
197 newsect->filepos = hdr->s_scnptr; in make_a_section_from_file()
198 newsect->rel_filepos = hdr->s_relptr; in make_a_section_from_file()
199 newsect->reloc_count = hdr->s_nreloc; in make_a_section_from_file()
201 bfd_coff_set_alignment_hook (abfd, newsect, hdr); in make_a_section_from_file()
[all …]
H A Delf.c603 setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) in setup_group() argument
803 elf_group_name (newsect) = elf_group_name (s); in setup_group()
804 elf_next_in_group (newsect) = elf_next_in_group (s); in setup_group()
805 elf_next_in_group (s) = newsect; in setup_group()
814 elf_group_name (newsect) = gname; in setup_group()
817 elf_next_in_group (newsect) = newsect; in setup_group()
823 elf_next_in_group (shdr->bfd_section) = newsect; in setup_group()
832 if (elf_group_name (newsect) == NULL) in setup_group()
836 abfd, newsect); in setup_group()
996 asection *newsect; in _bfd_elf_make_section_from_shdr() local
[all …]
H A Dpdp11.c1182 NAME (aout, new_section_hook) (bfd *abfd, asection *newsect) in NAME()
1185 newsect->alignment_power = bfd_get_arch_info(abfd)->section_align_power; in NAME()
1190 && !strcmp (newsect->name, ".text")) in NAME()
1192 obj_textsec(abfd)= newsect; in NAME()
1193 newsect->target_index = N_TEXT; in NAME()
1196 && !strcmp (newsect->name, ".data")) in NAME()
1198 obj_datasec (abfd) = newsect; in NAME()
1199 newsect->target_index = N_DATA; in NAME()
1202 && !strcmp (newsect->name, ".bss")) in NAME()
1204 obj_bsssec (abfd) = newsect; in NAME()
[all …]
H A Daoutx.h1208 NAME (aout, new_section_hook) (bfd *abfd, asection *newsect) in NAME()
1211 newsect->alignment_power = bfd_get_arch_info (abfd)->section_align_power; in NAME()
1215 if (obj_textsec (abfd) == NULL && !strcmp (newsect->name, ".text")) in NAME()
1217 obj_textsec (abfd)= newsect; in NAME()
1218 newsect->target_index = N_TEXT; in NAME()
1220 else if (obj_datasec (abfd) == NULL && !strcmp (newsect->name, ".data")) in NAME()
1222 obj_datasec (abfd) = newsect; in NAME()
1223 newsect->target_index = N_DATA; in NAME()
1225 else if (obj_bsssec (abfd) == NULL && !strcmp (newsect->name, ".bss")) in NAME()
1227 obj_bsssec (abfd) = newsect; in NAME()
[all …]
H A Dmmo.c2135 mmo_new_section_hook (bfd *abfd, asection *newsect) in mmo_new_section_hook() argument
2137 if (!newsect->used_by_bfd) in mmo_new_section_hook()
2141 newsect->used_by_bfd in mmo_new_section_hook()
2143 if (!newsect->used_by_bfd) in mmo_new_section_hook()
2148 newsect->alignment_power = 2; in mmo_new_section_hook()
2149 return _bfd_generic_new_section_hook (abfd, newsect); in mmo_new_section_hook()
H A Dsom.c5329 som_new_section_hook (bfd *abfd, asection *newsect) in som_new_section_hook() argument
5331 if (!newsect->used_by_bfd) in som_new_section_hook()
5335 newsect->used_by_bfd = bfd_zalloc (abfd, amt); in som_new_section_hook()
5336 if (!newsect->used_by_bfd) in som_new_section_hook()
5339 newsect->alignment_power = 3; in som_new_section_hook()
5342 return _bfd_generic_new_section_hook (abfd, newsect); in som_new_section_hook()
H A Delfnn-aarch64.c8393 asection *newsect = bfd_make_section_anyway (abfd, "memtag"); in elfNN_aarch64_section_from_phdr() local
8395 if (newsect == NULL) in elfNN_aarch64_section_from_phdr()
8402 newsect->vma = hdr->p_vaddr / opb; in elfNN_aarch64_section_from_phdr()
8405 newsect->size = hdr->p_filesz; in elfNN_aarch64_section_from_phdr()
8406 newsect->filepos = hdr->p_offset; in elfNN_aarch64_section_from_phdr()
8410 newsect->rawsize = hdr->p_memsz; in elfNN_aarch64_section_from_phdr()
8415 newsect->flags |= SEC_HAS_CONTENTS; in elfNN_aarch64_section_from_phdr()
H A Delf64-alpha.c1153 asection *newsect; in elf64_alpha_section_from_shdr() local
1172 newsect = hdr->bfd_section; in elf64_alpha_section_from_shdr()
1176 if (!bfd_set_section_flags (newsect, in elf64_alpha_section_from_shdr()
1177 bfd_section_flags (newsect) | SEC_DEBUGGING)) in elf64_alpha_section_from_shdr()
H A Delf64-ia64-vms.c4492 asection *newsect = hdr->bfd_section; in elf64_vms_section_from_shdr() local
4494 if (!bfd_set_section_flags (newsect, in elf64_vms_section_from_shdr()
4495 bfd_section_flags (newsect) | secflags)) in elf64_vms_section_from_shdr()
H A Delf32-ppc.c1328 asection *newsect; in ppc_elf_section_from_shdr() local
1334 newsect = hdr->bfd_section; in ppc_elf_section_from_shdr()
1349 || bfd_set_section_flags (newsect, newsect->flags | flags)); in ppc_elf_section_from_shdr()
/netbsd-src/external/gpl3/binutils.old/dist/bfd/doc/
H A Daoutx.texi206 asection *newsect);
/netbsd-src/external/gpl3/binutils/dist/bfd/doc/
H A Daoutx.texi166 @deftypefn {Function} bool aout_@var{size}_new_section_hook, (bfd *abfd, asection *newsect);
/netbsd-src/external/gpl3/gdb.old/dist/bfd/
H A DChangeLog-00016349 * section.c (bfd_make_section_anyway): Release newsect ptr when
6350 newsect->symbol fails to alloc. Use bfd_release instead of free.

12