Home | History | Annotate | Download | only in bfd

Lines Matching defs:section

56 /* Information we keep for each section in the output file during the
85 this archive in the .loader section. */
102 section will be before we assign section positions. */
105 /* The .debug section we will use for the final output. */
108 /* The .loader section we will use for the final output. */
112 allocated in the .loader section. */
115 /* The .loader section header. */
118 /* The .gl section we use to hold global linkage code. */
121 /* The .tc section we use to hold toc entries we build for global
125 /* The .ds section we use to hold function descriptors which we
135 /* Whether the .text section must be read-only. */
170 /* Array of information kept for each output section, indexed by the
193 section. */
195 /* Buffer large enough to hold any input section. */
197 /* Buffer large enough to hold external relocs of any input section. */
210 /* Read the contents of a section. */
336 symbuf->symbol.section = bfd_abs_section_ptr;
338 symbuf->symbol.section = coff_section_from_bfd_index (abfd,
340 symbuf->symbol.value = ldsym.l_value - symbuf->symbol.section->vma;
631 relocs which may have been cached for the enclosing section. */
852 /* Read in the .loader section. FIXME: We should really use the
854 section by name. */
859 (_("%s: dynamic object with no .loader section"),
925 h->root.u.def.section = bfd_abs_section_ptr;
931 since we don't have a section to put it in anyhow.
980 hds->root.u.def.section = bfd_abs_section_ptr;
1055 /* We need to build a .loader section, so we do it here. This
1072 /* Likewise for the linkage section. */
1087 /* Likewise for the TOC section. */
1102 /* Likewise for the descriptor section. */
1117 /* Likewise for the .debug section. */
1191 COFF sections--.text, .data, and .bss--but each COFF section will
1194 considered a section in its own right. For example, a TOC entry is
1197 extract the XMC_TC csects from the .data section of the input .o
1274 not easily determine which section a symbol is in, so we store
1293 order by VMA within a given section, so we handle this by
1295 into reloc_info using the section target_index. */
1302 /* Read in the relocs and line numbers for each section. */
1355 asection *section;
1396 rather than by section, in order to more easily handle
1418 (_("%B: `%s' has line numbers but no enclosing section"),
1484 section = NULL;
1514 section = bfd_und_section_ptr;
1517 section = bfd_abs_section_ptr;
1659 /* We need to create a new section. We get the name from
1667 /* The enclosing section is the main section : .data, .text
1679 (_("%B: csect `%s' not in enclosing section"),
1692 /* Record the enclosing section in the tdata for this new
1693 section. */
1737 /* There are a number of other fields and section flags
1750 beginning of the newly created section. */
1753 section = csect;
1757 /* If this is a TOC section for a symbol, record it. */
1778 section = xcoff_data (abfd)->csects[aux.x_csect.x_scnlen.l];
1779 if (section == NULL
1780 || (section->flags & SEC_HAS_CONTENTS) == 0)
1791 csect = section;
1806 /* The linker script puts the .td section in the data
1807 section after the .tc section. */
1820 /* There are a number of other fields and section flags
1844 section = csect;
1886 BFD_ASSERT (section != NULL);
1900 section = bfd_und_section_ptr;
1930 if (! bfd_is_und_section (section))
1944 && ! bfd_is_und_section (section)
1945 && ! bfd_is_com_section (section))
1955 (*sym_hash)->root.u.def.section->owner;
1962 section = bfd_und_section_ptr;
1984 section = bfd_und_section_ptr;
1991 && (bfd_is_und_section (section)
1992 || bfd_is_com_section (section)))
2023 (info, abfd, name, flags, section, value,
2032 || (*sym_hash)->root.u.c.p->section != csect)
2046 || section == bfd_und_section_ptr)
2059 *csect_cache = section;
2083 /* Reset the section size and the line number count, since the
2085 the .debug section, since we need to read it below in
2581 && h->root.u.def.section->owner != NULL
2582 && h->root.u.def.section->owner->my_archive != NULL)
2627 owner = h->root.u.def.section->owner;
2647 /* Return true if relocation REL needs to be copied to the .loader section.
2693 && bfd_is_abs_section (h->root.u.def.section))
2701 /* Mark a symbol as not being garbage, including the section in which
2740 h->root.u.def.section = sec;
2758 /* Mark the TOC section, so that we get an anchor
2777 /* Mark the descriptor (and its TOC section). */
2792 h->root.u.def.section = sec;
2814 /* Allocate room in the fallback TOC section. */
2855 hsec = h->root.u.def.section;
2891 if (!xcoff_mark (info, h->root.u.def.section))
2898 /* The mark phase of garbage collection. For a given section, mark
2902 section. */
2922 /* Mark all the symbols in this section. */
2936 /* Look through the section relocs. */
2976 section. */
3129 && (! bfd_is_abs_section (h->root.u.def.section)
3138 h->root.u.def.section = bfd_abs_section_ptr;
3173 section with relocs, but if we are creating the descriptor
3279 && h->root.u.def.section == csect);
3282 return h->root.u.c.p->section->owner == input_bfd;
3313 /* We need to add a symbol to the .loader section if it is mentioned
3314 in a reloc which we are copying to the .loader section and it was
3376 && (h->root.u.def.section->owner == NULL
3377 || (h->root.u.def.section->owner->xvec
3388 section. */
3390 && h->root.u.c.p->section->size == 0)
3392 BFD_ASSERT (bfd_is_com_section (h->root.u.c.p->section));
3393 h->root.u.c.p->section->size = h->root.u.c.size;
3411 is stored in the .debug section, otherwise it is null.
3499 /* Lay out the .loader section, filling in the header and the import paths.
3534 /* Set up the .loader section header. */
3559 /* We now know the final size of the .loader section. Allocate
3612 /* Build the .loader section. This is called by the XCOFF linker
3614 .loader section before the linker lays out the output file.
3623 -bmodtype linker option). TEXTRO is whether the text section must
3699 ldsym->l_scnum = 2; /* Data section. */
3700 ldsym->l_smtype = XTY_SD; /* Csect section definition. */
3741 /* We shouldn't unconditionaly mark the TOC section.
3826 and figure out the contents of the .debug section. */
3860 to read SUB's .debug section. */
3864 /* Grab the contents of SUB's .debug section, if any. */
3904 /* If this symbol's name is stored in the debug section,
3927 output .debug section. */
4019 /* Return the section that defines H. Return null if no section does. */
4028 return h->root.u.def.section;
4031 return h->root.u.c.p->section;
4039 relocation should be against an output section, HSEC points to the
4040 input section that IREL is against, otherwise HSEC is null. H is the
4067 (_("%B: loader reloc in unrecognized section `%s'"),
4094 (_("%B: loader reloc in read-only section %A"),
4198 /* If this symbol is in the .loader section, swap out the
4254 impbfd = h->root.u.def.section->owner;
4286 h->root.u.def.section->output_section->target_index;
4364 name has already been entered in the .debug section. */
4619 /* Read in the enclosing section's line-number
4766 /* Relocate the contents of each section. */
4772 /* This section was omitted from the link. */
4813 /* Call processor specific code to relocate the section
4987 /* Write out the modified section contents. */
5024 /* Return true if section SEC is a TOC section. */
5192 /* If we need a .loader section entry, write it out. */
5215 sec = h->root.u.def.section;
5297 && (h->root.u.def.section
5304 p = h->root.u.def.section->contents + h->root.u.def.value;
5448 && (h->root.u.def.section
5474 sec = h->root.u.def.section;
5483 esec = hentry->root.u.def.section;
5593 BFD_ASSERT (bfd_is_abs_section (h->root.u.def.section));
5608 isym.n_value = (h->root.u.def.section->output_section->vma
5609 + h->root.u.def.section->output_offset
5611 if (bfd_is_abs_section (h->root.u.def.section->output_section))
5614 isym.n_scnum = h->root.u.def.section->output_section->target_index;
5634 isym.n_value = (h->root.u.c.p->section->output_section->vma
5635 + h->root.u.c.p->section->output_offset);
5636 isym.n_scnum = h->root.u.c.p->section->output_section->target_index;
5706 /* We need to somehow locate a symbol in the right section. The
5810 /* Now output the reloc to the .loader section. */
5899 sec = p->u.indirect.section;
5902 link. This will normally be every section. We need
5948 /* Insert .pad sections before every section which has
5950 section which has contents and is loaded. */
5965 /* Create a pad section and place it before the section
5967 relinking the bfd's section list. */
5980 /* Reset the section indices after inserting the new
5991 each section to land on a page boundary. This bit of
6075 written out all the local symbols. For each section in
6185 && p->u.indirect.section->owner->xvec == abfd->xvec)
6187 sub = p->u.indirect.section->owner;
6347 /* Free up the section information. */
6363 /* Write out the loader section contents. */