Lines Matching refs:newsect

466 setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
592 elf_group_name (newsect) = elf_group_name (s);
593 elf_next_in_group (newsect) = elf_next_in_group (s);
594 elf_next_in_group (s) = newsect;
603 elf_group_name (newsect) = gname;
606 elf_next_in_group (newsect) = newsect;
612 elf_next_in_group (shdr->bfd_section) = newsect;
620 if (elf_group_name (newsect) == NULL)
623 abfd, newsect);
732 asection *newsect;
743 newsect = bfd_make_section_anyway (abfd, name);
744 if (newsect == NULL)
747 hdr->bfd_section = newsect;
748 elf_section_data (newsect)->this_hdr = *hdr;
749 elf_section_data (newsect)->this_idx = shindex;
752 elf_section_type (newsect) = hdr->sh_type;
753 elf_section_flags (newsect) = hdr->sh_flags;
755 newsect->filepos = hdr->sh_offset;
757 if (! bfd_set_section_vma (abfd, newsect, hdr->sh_addr)
758 || ! bfd_set_section_size (abfd, newsect, hdr->sh_size)
759 || ! bfd_set_section_alignment (abfd, newsect,
783 newsect->entsize = hdr->sh_entsize;
788 if (!setup_group (abfd, hdr, newsect))
840 && elf_next_in_group (newsect) == NULL)
848 if (! bfd_set_section_flags (abfd, newsect, flags))
891 newsect->lma = (phdr->p_paddr
901 newsect->lma = (phdr->p_paddr
2505 asection *newsect;
2520 newsect = bfd_make_section (abfd, name);
2521 if (newsect == NULL)
2523 newsect->vma = hdr->p_vaddr;
2524 newsect->lma = hdr->p_paddr;
2525 newsect->size = hdr->p_filesz;
2526 newsect->filepos = hdr->p_offset;
2527 newsect->flags |= SEC_HAS_CONTENTS;
2528 newsect->alignment_power = bfd_log2 (hdr->p_align);
2531 newsect->flags |= SEC_ALLOC;
2532 newsect->flags |= SEC_LOAD;
2537 newsect->flags |= SEC_CODE;
2542 newsect->flags |= SEC_READONLY;
2553 newsect = bfd_make_section (abfd, name);
2554 if (newsect == NULL)
2556 newsect->vma = hdr->p_vaddr + hdr->p_filesz;
2557 newsect->lma = hdr->p_paddr + hdr->p_filesz;
2558 newsect->size = hdr->p_memsz - hdr->p_filesz;
2561 newsect->flags |= SEC_ALLOC;
2563 newsect->flags |= SEC_CODE;
2566 newsect->flags |= SEC_READONLY;