Home | History | Annotate | Download | only in bfd

Lines Matching refs:csect

717 /* Read internal relocs for an XCOFF csect.  This is a wrapper around
1303 table. From the linker's point of view, each csect must be
1305 handled as a small XMC_TC csect. The linker must be able to merge
1311 nightmare. We cope by actually creating sections for each csect,
1314 csect they belong to is to examine the address. */
1330 asection *csect;
1453 csect = NULL;
1475 /* In this pass we are only interested in symbols with csect
1480 Normally csect is a .pr, .rw etc. created in the loop
1485 csect = NULL;
1486 if (csect != NULL)
1487 *csect_cache = csect;
1508 add them to the count for this csect. In the final link pass
1514 && csect != NULL
1528 enclosing = xcoff_section_data (abfd, csect)->enclosing;
1571 csect are contiguous; this only matters for
1573 if (csect->line_filepos == 0)
1574 csect->line_filepos =
1584 /* Pick up the csect auxiliary information. */
1612 (_("%pB: symbol `%s' has unrecognized csect type %d"),
1645 csect = NULL;
1672 32 bit has a csect length of 4 for TOC
1673 64 bit has a csect length of 8 for TOC
1805 the csect storage mapping class, so that the linker can
1808 csect = bfd_xcoff_create_csect_from_smclas(abfd, &aux, name);
1809 if (NULL == csect)
1813 or .bss that the csect is coming from. */
1825 (_("%pB: csect `%s' not in enclosing section"),
1830 csect->vma = sym.n_value;
1831 csect->filepos = (enclosing->filepos
1834 csect->size = aux.x_csect.x_scnlen.u64;
1835 csect->rawsize = aux.x_csect.x_scnlen.u64;
1836 csect->flags |= SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS;
1837 csect->alignment_power = SMTYP_ALIGN (aux.x_csect.x_smtyp);
1842 csect->used_by_bfd = bfd_zalloc (abfd, amt);
1843 if (csect->used_by_bfd == NULL)
1846 coff_section_data (abfd, csect)->tdata = bfd_zalloc (abfd, amt);
1847 if (coff_section_data (abfd, csect)->tdata == NULL)
1849 xcoff_section_data (abfd, csect)->enclosing = enclosing;
1850 xcoff_section_data (abfd, csect)->lineno_count =
1862 relindx = xcoff_find_reloc (relocs, amt, csect->vma);
1868 csect->rel_filepos = (enclosing->rel_filepos
1872 && rel->r_vaddr < csect->vma + csect->size)
1875 *rel_csect = csect;
1876 csect->flags |= SEC_RELOC;
1877 ++csect->reloc_count;
1891 xcoff_section_data (abfd, csect)->first_symndx = csect_index;
1894 first_csect = csect;
1901 section = csect;
1907 set_toc->toc_section = csect;
1913 symbol index of the csect. Usually the XTY_LD symbol will
1939 csect = section;
1940 value = sym.n_value - csect->vma;
1945 /* This is an unitialized csect. We could base the name on
1947 an XMC_TD symbol. If this csect is externally visible,
1956 csect = bfd_make_section_anyway_with_flags (abfd, ".td",
1961 /* This is a thread-local unitialized csect. */
1962 csect = bfd_make_section_anyway_with_flags (abfd, ".tbss",
1966 csect = bfd_make_section_anyway_with_flags (abfd, ".bss",
1969 if (csect == NULL)
1971 csect->vma = sym.n_value;
1972 csect->size = aux.x_csect.x_scnlen.u64;
1973 csect->alignment_power = SMTYP_ALIGN (aux.x_csect.x_smtyp);
1982 csect->used_by_bfd = bfd_zalloc (abfd, amt);
1983 if (csect->used_by_bfd == NULL)
1986 coff_section_data (abfd, csect)->tdata = bfd_zalloc (abfd, amt);
1987 if (coff_section_data (abfd, csect)->tdata == NULL)
1989 xcoff_section_data (abfd, csect)->first_symndx = csect_index;
1992 first_csect = csect;
1996 csect->flags |= SEC_IS_COMMON;
1997 csect->size = 0;
1998 section = csect;
2029 xcoff_hash_table (info)->special_sections[i] = csect;
2203 || (*sym_hash)->root.u.c.p->section != csect)
2204 /* We don't need the common csect we just created. */
2205 csect->size = 0;
2208 = csect->alignment_power;
2233 *csect_cache = csect;
2234 if (csect != NULL)
2235 xcoff_section_data (abfd, csect)->last_symndx
2277 (_("%pB: reloc %s:%" PRId64 " not in csect"),
3268 correct csect length. */
3506 and csect CSECT. Return true if INPUT_BFD defines H. */
3510 asection *csect)
3518 return (!bfd_is_abs_section (csect)
3519 && h->root.u.def.section == csect);
3649 hash table entry H and csect CSECT. AUX contains ISYM's auxiliary
3650 csect information, if any. NAME is the function's name if the name
3662 asection *csect, const char *name)
3666 /* If we are skipping this csect, we want to strip the symbol too. */
3667 if (csect == NULL)
3670 /* Likewise if we garbage-collected the csect. */
3672 && !bfd_is_abs_section (csect)
3673 && !bfd_is_und_section (csect)
3674 && csect->gc_mark == 0)
3695 if (!xcoff_final_definition_p (input_bfd, h, csect))
3909 ldsym->l_smtype = XTY_SD; /* Csect section definition. */
4205 asection *csect;
4211 /* Read in the csect information, if any. */
4230 csect = *csectpp;
4232 *sym_hash, csect, name);
4258 csect->output_section->lineno_count += *lineno_counts;
4336 A new csect will be created by xcoff_stub_get_csect_in_range,
4359 /* Get the name of a csect which will contain stubs.
4387 from SECTION. CREATE means that creating a csect is allowed. */
4396 asection *csect;
4400 /* Search for a csect in range. */
4401 for (csect = htab->params->stub_bfd->sections, it = 0;
4402 csect != NULL;
4403 csect = csect->next, it++)
4405 /* A csect is in range if everything instructions in SECTION
4406 can branch to every stubs in the stub csect. This can
4409 stub csect (ie the vma of the csect + its size).
4410 However, as the stub csect might be growing its size isn't
4412 to reach the first entry of the stub csect anymore.
4415 another csect will be used.
4420 csect_vma = (csect->output_section->vma
4421 + csect->output_offset);
4422 csect_last_vma = (csect->output_section->vma
4423 + csect->output_offset
4424 + csect->size);
4436 if (!create && csect == NULL)
4443 /* A stub csect already exists, get its entry. */
4444 if (csect != NULL)
4451 /* Create the csect and its symbol. */
4452 csect = (*htab->params->add_stub_section) (".pr", section);
4453 if (!csect)
4459 csect->alignment_power = 2;
4460 csect->gc_mark = 1;
4461 csect->reloc_count = 0;
4463 /* We need to associate a VMA to this new csect. Otherwise,
4467 csect->output_offset = BFD_ALIGN (section->output_offset + section->size,
4471 csect_name, BSF_GLOBAL, csect, 0,
4497 /* The name of a stub is based on its stub csect and the
4622 the containing csect. The size is needed for
4909 /* Get a stub csect in ranch. */
4914 _bfd_error_handler (_("%pB: Unable to find a stub csect in range"
4930 /* A stub entry inside the in range csect already exists. */
5251 /* Read in the csect information, if any. */
5515 index of the containing csect. */
6168 good place to put the TOC anchor csect, and write out the associated
6184 index of a csect at the beginning of the TOC. */
6214 /* Every TOC csect can be accessed from TOC_START. */
6218 /* Find the lowest TOC csect that is still within range of TOC_END. */
6263 /* Fill out the auxiliary csect information. */
6479 written out below because the length of the csect depends on
6489 Also needs to change the csect size : 4 for 32 bit, 8 for 64 bit
6547 /* We need to emit a symbol to define a csect which holds