Lines Matching refs:newsect

603 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
1004 newsect = bfd_make_section_anyway (abfd, name); in _bfd_elf_make_section_from_shdr()
1005 if (newsect == NULL) in _bfd_elf_make_section_from_shdr()
1008 hdr->bfd_section = newsect; in _bfd_elf_make_section_from_shdr()
1009 elf_section_data (newsect)->this_hdr = *hdr; in _bfd_elf_make_section_from_shdr()
1010 elf_section_data (newsect)->this_idx = shindex; in _bfd_elf_make_section_from_shdr()
1013 elf_section_type (newsect) = hdr->sh_type; in _bfd_elf_make_section_from_shdr()
1014 elf_section_flags (newsect) = hdr->sh_flags; in _bfd_elf_make_section_from_shdr()
1016 newsect->filepos = hdr->sh_offset; in _bfd_elf_make_section_from_shdr()
1038 newsect->entsize = hdr->sh_entsize; in _bfd_elf_make_section_from_shdr()
1043 if (!setup_group (abfd, hdr, newsect)) in _bfd_elf_make_section_from_shdr()
1090 if (!bfd_set_section_vma (newsect, hdr->sh_addr / opb) in _bfd_elf_make_section_from_shdr()
1091 || !bfd_set_section_size (newsect, hdr->sh_size) in _bfd_elf_make_section_from_shdr()
1092 || !bfd_set_section_alignment (newsect, bfd_log2 (hdr->sh_addralign in _bfd_elf_make_section_from_shdr()
1103 && elf_next_in_group (newsect) == NULL) in _bfd_elf_make_section_from_shdr()
1106 if (!bfd_set_section_flags (newsect, flags)) in _bfd_elf_make_section_from_shdr()
1121 if (!bfd_malloc_and_get_section (abfd, newsect, &contents)) in _bfd_elf_make_section_from_shdr()
1129 if ((newsect->flags & SEC_ALLOC) != 0) in _bfd_elf_make_section_from_shdr()
1155 if ((newsect->flags & SEC_LOAD) == 0) in _bfd_elf_make_section_from_shdr()
1156 newsect->lma = (phdr->p_paddr in _bfd_elf_make_section_from_shdr()
1166 newsect->lma = (phdr->p_paddr in _bfd_elf_make_section_from_shdr()
1183 if ((newsect->flags & SEC_DEBUGGING) != 0 in _bfd_elf_make_section_from_shdr()
1184 && (newsect->flags & SEC_HAS_CONTENTS) != 0 in _bfd_elf_make_section_from_shdr()
1185 && (newsect->flags & SEC_ELF_OCTETS) != 0) in _bfd_elf_make_section_from_shdr()
1193 = bfd_is_section_compressed_info (abfd, newsect, in _bfd_elf_make_section_from_shdr()
1205 && newsect->size != 0 in _bfd_elf_make_section_from_shdr()
1224 if (!bfd_init_section_compress_status (abfd, newsect)) in _bfd_elf_make_section_from_shdr()
1234 if (!bfd_init_section_decompress_status (abfd, newsect)) in _bfd_elf_make_section_from_shdr()
1242 if (newsect->compress_status == DECOMPRESS_SECTION_ZSTD) in _bfd_elf_make_section_from_shdr()
1249 newsect->compress_status = COMPRESS_SECTION_NONE; in _bfd_elf_make_section_from_shdr()
1261 bfd_rename_section (newsect, new_name); in _bfd_elf_make_section_from_shdr()
1271 if (bfd_get_section_contents (abfd, newsect, &lsection, 0, in _bfd_elf_make_section_from_shdr()
3467 asection *newsect; in _bfd_elf_make_section_from_phdr() local
3486 newsect = bfd_make_section (abfd, name); in _bfd_elf_make_section_from_phdr()
3487 if (newsect == NULL) in _bfd_elf_make_section_from_phdr()
3489 newsect->vma = hdr->p_vaddr / opb; in _bfd_elf_make_section_from_phdr()
3490 newsect->lma = hdr->p_paddr / opb; in _bfd_elf_make_section_from_phdr()
3491 newsect->size = hdr->p_filesz; in _bfd_elf_make_section_from_phdr()
3492 newsect->filepos = hdr->p_offset; in _bfd_elf_make_section_from_phdr()
3493 newsect->flags |= SEC_HAS_CONTENTS; in _bfd_elf_make_section_from_phdr()
3494 newsect->alignment_power = bfd_log2 (hdr->p_align); in _bfd_elf_make_section_from_phdr()
3497 newsect->flags |= SEC_ALLOC; in _bfd_elf_make_section_from_phdr()
3498 newsect->flags |= SEC_LOAD; in _bfd_elf_make_section_from_phdr()
3503 newsect->flags |= SEC_CODE; in _bfd_elf_make_section_from_phdr()
3508 newsect->flags |= SEC_READONLY; in _bfd_elf_make_section_from_phdr()
3522 newsect = bfd_make_section (abfd, name); in _bfd_elf_make_section_from_phdr()
3523 if (newsect == NULL) in _bfd_elf_make_section_from_phdr()
3525 newsect->vma = (hdr->p_vaddr + hdr->p_filesz) / opb; in _bfd_elf_make_section_from_phdr()
3526 newsect->lma = (hdr->p_paddr + hdr->p_filesz) / opb; in _bfd_elf_make_section_from_phdr()
3527 newsect->size = hdr->p_memsz - hdr->p_filesz; in _bfd_elf_make_section_from_phdr()
3528 newsect->filepos = hdr->p_offset + hdr->p_filesz; in _bfd_elf_make_section_from_phdr()
3529 align = newsect->vma & -newsect->vma; in _bfd_elf_make_section_from_phdr()
3532 newsect->alignment_power = bfd_log2 (align); in _bfd_elf_make_section_from_phdr()
3535 newsect->flags |= SEC_ALLOC; in _bfd_elf_make_section_from_phdr()
3537 newsect->flags |= SEC_CODE; in _bfd_elf_make_section_from_phdr()
3540 newsect->flags |= SEC_READONLY; in _bfd_elf_make_section_from_phdr()