• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/binutils/bfd/

Lines Matching refs:section

141 /* Initialize a new section.  */
144 _bfd_ecoff_new_section_hook (bfd *abfd, asection *section)
170 section->alignment_power = 4;
173 if (streq (section->name, section_flags[i].name))
175 section->flags |= section_flags[i].flags;
180 /* Probably any other section name is SEC_NEVER_LOAD, but I'm
184 return _bfd_generic_new_section_hook (abfd, section);
278 /* Get the section s_flags to use for a section. */
349 /* Get the BFD flags to use for a section. */
355 asection *section ATTRIBUTE_UNUSED,
365 /* For 386 COFF, at least, an unloadable text or data section is
366 actually a shared library section. */
527 an undocumented debug data section between the symhdr and the first
528 documented section. And the ordering of the sections varies between
628 section. */
644 new->symbol.section = NULL;
652 /* Set the BFD flags and section for an ECOFF symbol. */
663 asym->section = &bfd_debug_section;
713 debugging section, and mark them as local. If BSF_DEBUGGING
719 asym->section = bfd_make_section_old_way (abfd, _TEXT);
720 asym->value -= asym->section->vma;
723 asym->section = bfd_make_section_old_way (abfd, _DATA);
724 asym->value -= asym->section->vma;
727 asym->section = bfd_make_section_old_way (abfd, _BSS);
728 asym->value -= asym->section->vma;
734 asym->section = bfd_abs_section_ptr;
737 asym->section = bfd_und_section_ptr;
750 asym->section = bfd_make_section_old_way (abfd, ".sdata");
751 asym->value -= asym->section->vma;
754 asym->section = bfd_make_section_old_way (abfd, ".sbss");
755 asym->value -= asym->section->vma;
758 asym->section = bfd_make_section_old_way (abfd, ".rdata");
759 asym->value -= asym->section->vma;
767 asym->section = bfd_com_section_ptr;
775 /* Initialize the small common section. */
783 ecoff_scom_symbol.section = &ecoff_scom_section;
786 asym->section = &ecoff_scom_section;
794 asym->section = bfd_und_section_ptr;
799 asym->section = bfd_make_section_old_way (abfd, ".init");
800 asym->value -= asym->section->vma;
808 asym->section = bfd_make_section_old_way (abfd, ".fini");
809 asym->value -= asym->section->vma;
812 asym->section = bfd_make_section_old_way (abfd, ".rconst");
813 asym->value -= asym->section->vma;
820 in a special construction section. These are produced by the
896 /* The alpha uses a negative ifd field for section symbols. */
1550 /* Read in the relocs for a section. */
1554 asection *section,
1565 if (section->relocation != NULL
1566 || section->reloc_count == 0
1567 || (section->flags & SEC_CONSTRUCTOR) != 0)
1573 amt = section->reloc_count;
1578 amt = external_reloc_size * section->reloc_count;
1582 if (bfd_seek (abfd, section->rel_filepos, SEEK_SET) != 0)
1587 for (i = 0, rptr = internal_relocs; i < section->reloc_count; i++, rptr++)
1616 /* r_symndx is a section key. */
1644 rptr->address = intern.r_vaddr - bfd_get_section_vma (abfd, section);
1653 section->relocation = internal_relocs;
1662 asection *section,
1668 if (section->flags & SEC_CONSTRUCTOR)
1672 /* This section has relocs made up by us, not the file, so take
1675 for (count = 0, chain = section->constructor_chain;
1676 count < section->reloc_count;
1684 if (! ecoff_slurp_reloc_table (abfd, section, symbols))
1687 tblptr = section->relocation;
1689 for (count = 0; count < section->reloc_count; count++)
1695 return section->reloc_count;
1699 /* Provided a BFD, a section and an offset into the section, calculate
1705 asection *section,
1732 return _bfd_ecoff_locate_line (abfd, section, offset, debug_info,
1869 /* Get the size of the section headers. */
1891 /* Get the contents of a section. */
1895 asection *section,
1900 return _bfd_generic_get_section_contents (abfd, section, location,
1931 /* Calculate the file position for each section, and set
1965 /* Some versions of the OSF linker put the .rdata section in the
1994 /* For the Alpha ECOFF .pdata section the lnnoptr field is
1996 really in the section. Each entry is 8 bytes. We store this
1997 away in line_filepos before increasing the section size. */
2005 affect the section size, though. FIXME: Does this work for
2024 /* On Irix 4, the location of contents of the .lib section
2025 from a shared library section is also rounded up to a
2035 /* Skip up to the next page for an unallocated section, such
2036 as the .comment section on the Alpha. This leaves room
2037 for the .bss section. */
2064 /* Make sure that this section is of the right size too. */
2136 /* Set the contents of a section. */
2140 asection *section,
2153 /* Handle the .lib section specially so that Irix 4 shared libraries
2155 if (streq (section->name, _LIB))
2163 ++section->lma;
2173 pos = section->filepos + offset;
2259 /* Don't include debugging, local, or section symbols. */
2378 /* Write section headers to the file. */
2380 /* Allocate buff big enough to hold a section header,
2403 struct internal_scnhdr section;
2408 strncpy (section.s_name, current->name, sizeof section.s_name);
2413 section.s_vaddr = 0;
2415 section.s_vaddr = vma;
2417 section.s_paddr = current->lma;
2418 section.s_size = current->size;
2420 /* If this section is unloadable then the scnptr will be 0. */
2422 section.s_scnptr = 0;
2424 section.s_scnptr = current->filepos;
2425 section.s_relptr = current->rel_filepos;
2427 /* FIXME: the lnnoptr of the .sbss or .sdata section of an
2435 section.s_lnnoptr = 0;
2438 /* The Alpha ECOFF .pdata section uses the lnnoptr field to
2439 hold the number of entries in the section (each entry is
2442 section.s_lnnoptr = current->line_filepos;
2445 section.s_nreloc = current->reloc_count;
2446 section.s_nlnno = 0;
2447 section.s_flags = ecoff_sec_to_styp_flags (current->name,
2450 if (bfd_coff_swap_scnhdr_out (abfd, (void *) &section, buff) == 0
2454 if ((section.s_flags & STYP_TEXT) != 0
2455 || ((section.s_flags & STYP_RDATA) != 0
2457 || section.s_flags == STYP_PDATA
2458 || (section.s_flags & STYP_DYNAMIC) != 0
2459 || (section.s_flags & STYP_LIBLIST) != 0
2460 || (section.s_flags & STYP_RELDYN) != 0
2461 || section.s_flags == STYP_CONFLIC
2462 || (section.s_flags & STYP_DYNSTR) != 0
2463 || (section.s_flags & STYP_DYNSYM) != 0
2464 || (section.s_flags & STYP_HASH) != 0
2465 || (section.s_flags & STYP_ECOFF_INIT) != 0
2466 || (section.s_flags & STYP_ECOFF_FINI) != 0
2467 || section.s_flags == STYP_RCONST)
2476 else if ((section.s_flags & STYP_RDATA) != 0
2477 || (section.s_flags & STYP_DATA) != 0
2478 || (section.s_flags & STYP_LITA) != 0
2479 || (section.s_flags & STYP_LIT8) != 0
2480 || (section.s_flags & STYP_LIT4) != 0
2481 || (section.s_flags & STYP_SDATA) != 0
2482 || section.s_flags == STYP_XDATA
2483 || (section.s_flags & STYP_GOT) != 0)
2492 else if ((section.s_flags & STYP_BSS) != 0
2493 || (section.s_flags & STYP_SBSS) != 0)
2495 else if (section.s_flags == 0
2496 || (section.s_flags & STYP_ECOFF_LIB) != 0
2497 || section.s_flags == STYP_COMMENT)
2568 are at the end of the data section. The bsize field in the
2570 those in the data section. The value is not rounded to a page
2737 /* The .bss section of a demand paged executable must receive an
3364 asection *section;
3409 section = NULL;
3412 section = bfd_make_section_old_way (abfd, _TEXT);
3413 value -= section->vma;
3416 section = bfd_make_section_old_way (abfd, _DATA);
3417 value -= section->vma;
3420 section = bfd_make_section_old_way (abfd, _BSS);
3421 value -= section->vma;
3424 section = bfd_abs_section_ptr;
3427 section = bfd_und_section_ptr;
3430 section = bfd_make_section_old_way (abfd, _SDATA);
3431 value -= section->vma;
3434 section = bfd_make_section_old_way (abfd, _SBSS);
3435 value -= section->vma;
3438 section = bfd_make_section_old_way (abfd, _RDATA);
3439 value -= section->vma;
3444 section = bfd_com_section_ptr;
3451 /* Initialize the small common section. */
3459 ecoff_scom_symbol.section = &ecoff_scom_section;
3462 section = &ecoff_scom_section;
3465 section = bfd_und_section_ptr;
3468 section = bfd_make_section_old_way (abfd, _INIT);
3469 value -= section->vma;
3472 section = bfd_make_section_old_way (abfd, _FINI);
3473 value -= section->vma;
3476 section = bfd_make_section_old_way (abfd, _RCONST);
3477 value -= section->vma;
3481 if (section == NULL)
3489 section, value, NULL, TRUE, TRUE, sym_hash)))
3499 || (! bfd_is_und_section (section)
3500 && (! bfd_is_com_section (section)
3513 up in a GP relative section. We can't control the
3514 section of a defined symbol, but we can control the
3515 section of a common symbol. This case is actually needed
3519 && streq (h->root.u.c.p->section->name, SCOMMON))
3521 h->root.u.c.p->section = bfd_make_section_old_way (abfd,
3523 h->root.u.c.p->section->flags = SEC_ALLOC;
3999 /* Relocate and write an ECOFF section into an ECOFF output file. */
4016 input_section = link_order->u.indirect.section;
4025 /* Get the section contents. */
4043 /* Relocate the section contents. */
4049 /* Write out the relocated section. */
4098 asection *section;
4108 section = NULL;
4124 section = link_order->u.reloc.p->u.section;
4125 rel.sym_ptr_ptr = section->symbol_ptr_ptr;
4132 actually against the section. */
4141 section = h->u.def.section->output_section;
4145 addend += section->vma + h->u.def.section->output_offset;
4183 ? bfd_section_name (output_bfd, section)
4256 name = bfd_get_section_name (output_bfd, section);
4367 output_section = h->root.u.def.section->output_section;
4418 + h->root.u.def.section->output_section->vma
4419 + h->root.u.def.section->output_offset);
4548 o->reloc_count += p->u.indirect.section->reloc_count;
4584 + h->u.def.section->output_section->vma
4585 + h->u.def.section->output_offset);
4619 && (bfd_get_flavour (p->u.indirect.section->owner)