Lines Matching defs:section
31 (see 2.11 ar(5), historical section)
75 bfd_byte e_text[2]; /* Length of text section in bytes. */
76 bfd_byte e_data[2]; /* Length of data section in bytes. */
234 /* A buffer large enough to hold the contents of any section. */
236 /* A buffer large enough to hold the relocs of any section. */
350 Section contents have already been written. We write the
360 there actually are some section contents. */
441 /* Make all the section for an a.out file. */
847 /* The VMA of the .bss section is set by the VMA of the
848 .data section plus the size of the .data section. We may
896 /* The .text section is being loaded at an unusual address. We
897 may need to pad it such that the .data section starts at a page
949 /* Spec says data section should be rounded up to page boundary. */
961 /* If the BSS immediately follows the data section and extra space
962 in the page is left after the data section, fudge data
963 in the header so that the bss section looks smaller by that
964 amount. We'll start the bss section there, and lie to the OS.
967 the data section.) */
1140 sec_ptr section,
1154 if (section == obj_bsssec (abfd))
1160 if (section != obj_textsec (abfd)
1161 && section != obj_datasec (abfd))
1164 ("%s: can not represent section `%s' in a.out object file format",
1165 bfd_get_filename (abfd), bfd_get_section_name (abfd, section));
1172 if (bfd_seek (abfd, section->filepos + offset, SEEK_SET) != 0
1267 symbol->flags and symbol->section, and adjusting symbol->value. */
1282 /* Work out the symbol section. */
1301 cache_ptr->symbol.section = sec;
1318 cache_ptr->symbol.section = bfd_abs_section_ptr;
1327 cache_ptr->symbol.section = bfd_com_section_ptr;
1332 cache_ptr->symbol.section = bfd_und_section_ptr;
1337 cache_ptr->symbol.section = obj_textsec (abfd);
1338 cache_ptr->symbol.value -= cache_ptr->symbol.section->vma;
1343 cache_ptr->symbol.section = obj_datasec (abfd);
1344 cache_ptr->symbol.value -= cache_ptr->symbol.section->vma;
1349 cache_ptr->symbol.section = obj_bsssec (abfd);
1350 cache_ptr->symbol.value -= cache_ptr->symbol.section->vma;
1369 /* Mask out any existing type bits in case copying from one section
1378 /* This case occurs, e.g., for the *DEBUG* section of a COFF
1381 ("%B: can not represent section for symbol `%s' in a.out object file format",
1408 ("%B: can not represent section `%A' in a.out object file format",
1414 /* Turn the symbol from section relative to absolute again */
1698 asection *output_section = sym->section->output_section;
1732 /* BFD deals internally with all things based from the section they're
1733 in. so, something in 10 bytes into a text section with a base of
1737 contain 60. This macro subs the base of each section from the value
1738 to give the true offset from the section */
1750 /* Defined, section relative. replace symbol with pointer to \
1751 symbol which points to section. */ \
1819 /* Read and swap the relocs for a section. */
1920 /* Write out a relocation section into an object file. */
1923 NAME (aout, squirt_out_relocs) (bfd *abfd, asection *section)
1927 unsigned int count = section->reloc_count;
1930 natsize = section->size;
1935 generic = section->orelocation;
1963 sec_ptr section,
1967 arelent *tblptr = section->relocation;
1970 if (section == obj_bsssec (abfd))
1976 if (!(tblptr || NAME (aout, slurp_reloc_table)(abfd, section, symbols)))
1979 if (section->flags & SEC_CONSTRUCTOR)
1981 arelent_chain *chain = section->constructor_chain;
1983 for (count = 0; count < section->reloc_count; count ++)
1991 tblptr = section->relocation;
1993 for (count = 0; count++ < section->reloc_count;)
1999 return section->reloc_count;
2102 const char *section_name = symbol->section->name;
2186 /* Provided a BFD, a section and an offset into the section, calculate
2193 asection *section,
2281 if (obj_textsec(abfd) != section)
2610 element if the symbol is defined in the .data section,
2611 but not if it is defined in the .text section. That
2667 h->u.c.p->section = bfd_make_section_old_way (symbfd,
2786 asection *section;
2818 section = bfd_und_section_ptr;
2822 section = bfd_com_section_ptr;
2825 section = bfd_abs_section_ptr;
2828 section = obj_textsec (abfd);
2829 value -= bfd_get_section_vma (abfd, section);
2834 section = obj_datasec (abfd);
2835 value -= bfd_get_section_vma (abfd, section);
2838 section = obj_bsssec (abfd);
2839 value -= bfd_get_section_vma (abfd, section);
2844 (info, abfd, name, flags, section, value, string, copy, FALSE,
2850 alignment requirements of a section in a .o file. FIXME:
2970 sec = h->root.u.def.section->output_section;
2984 + h->root.u.def.section->output_offset);
3045 if (bfd_is_abs_section (pr->u.section))
3049 BFD_ASSERT (pr->u.section->owner == flaginfo->output_bfd);
3050 r_index = pr->u.section->target_index;
3180 pr->u.section)
3216 /* Get the section corresponding to a reloc index. */
3307 convert it into a relocation against a section. This
3317 output_section = h->root.u.def.section->output_section;
3327 /* Add the symbol value and the section VMA to the
3331 + h->root.u.def.section->output_offset);
3383 asection *section;
3385 /* This is a relocation against a section. We must
3386 adjust by the amount that the section moved. */
3387 section = aout_reloc_type_to_section (input_bfd, r_type);
3388 relocation = (section->output_section->vma
3389 + section->output_offset
3390 - section->vma);
3397 to the original address in the section and including the
3431 + h->root.u.def.section->output_section->vma
3432 + h->root.u.def.section->output_offset);
3445 asection *section;
3447 section = aout_reloc_type_to_section (input_bfd, r_type);
3448 relocation = (section->output_section->vma
3449 + section->output_offset
3450 - section->vma);
3527 /* Link an a.out section into the output file. */
3539 /* Get the section contents. */
3561 /* Relocate the section contents. */
3567 /* Write out the section contents. */
3656 in the output. Also, each section in ABFD should point to a list
3658 the output section. */
3695 /* Figure out the largest section size. Also, if generating
3766 /* Adjust the section sizes and vmas according to the magic number.
3768 filepos for each section. */
3794 /* Allocate buffers to hold section contents and relocs. */
3823 through everything that composes the text section and write it
3824 out, and then everything that composes the data section and write
3832 section contents, handle the relocation information, and write
3844 will normally be every section. We need to do this so that we
3851 p->u.indirect.section->linker_mark = TRUE;
3862 && (bfd_get_flavour (p->u.indirect.section->owner)
3867 input_bfd = p->u.indirect.section->owner;
4240 input_section = hresolve->root.u.def.section;
4248 /* Get the correct type based on the section. If