Lines Matching defs:section

535 /* Create the GOT section.  */
584 .plt section. */
608 (or .got.plt) section. We don't do this in the linker script
655 /* Look through the relocs for a section during the first phase.
874 section in dynobj and make room for this reloc. */
918 /* Return the section that should be marked against GC for a given
942 return h->root.u.def.section;
945 return h->root.u.c.p->section;
1368 /* Relocate an MN10300 ELF section. */
1658 asection *section = sec;
1689 /* Iterate over each section in this bfd. */
1690 for (section = input_bfd->sections;
1691 section != NULL;
1692 section = section->next)
1700 /* If there's nothing to do in this section, skip it. */
1701 if (! (((section->flags & SEC_RELOC) != 0
1702 && section->reloc_count != 0)
1703 || (section->flags & SEC_CODE) != 0))
1706 /* Get cached copy of section contents if it exists. */
1707 if (elf_section_data (section)->this_hdr.contents != NULL)
1708 contents = elf_section_data (section)->this_hdr.contents;
1709 else if (section->size != 0)
1712 if (!bfd_malloc_and_get_section (input_bfd, section,
1720 if ((section->flags & SEC_RELOC) != 0
1721 && section->reloc_count != 0)
1726 (input_bfd, section, (PTR) NULL,
1734 irelend = irel + section->reloc_count;
1830 if ((section->flags & SEC_CODE) != 0)
1839 section);
1846 /* Look at each function defined in this section and
1865 && hash->root.root.u.def.section == section
1913 && hash->root.root.u.def.section == section
1923 && elf_section_data (section)->relocs != internal_relocs)
1929 && elf_section_data (section)->this_hdr.contents != contents)
1935 /* Cache the section contents for elf_link_input_bfd. */
1936 elf_section_data (section)->this_hdr.contents = contents;
1970 code section and delete any prologue insns which will be
1990 /* Walk over each section in this bfd. */
1991 for (section = input_bfd->sections;
1992 section != NULL;
1993 section = section->next)
2002 if ((section->flags & SEC_CODE) == 0 || section->size == 0)
2005 if (section->reloc_count != 0)
2009 (input_bfd, section, (PTR) NULL,
2016 /* Get cached copy of section contents if it exists. */
2017 if (elf_section_data (section)->this_hdr.contents != NULL)
2018 contents = elf_section_data (section)->this_hdr.contents;
2022 if (!bfd_malloc_and_get_section (input_bfd, section,
2028 section);
2030 /* Now look for any function in this section which needs
2084 elf_section_data (section)->relocs = internal_relocs;
2085 elf_section_data (section)->this_hdr.contents = contents;
2106 section,
2117 /* Look for any global functions in this section which
2130 && sym_hash->root.root.u.def.section == section
2138 elf_section_data (section)->relocs = internal_relocs;
2139 elf_section_data (section)->this_hdr.contents = contents;
2161 section,
2174 && elf_section_data (section)->relocs != internal_relocs)
2180 && elf_section_data (section)->this_hdr.contents != contents)
2186 /* Cache the section contents for elf_link_input_bfd. */
2187 elf_section_data (section)->this_hdr.contents = contents;
2214 section = sec;
2217 this section does not have relocs, or if this is not a
2218 code section. */
2248 /* Get the section contents if we haven't done so already. */
2345 + h->root.root.u.def.section->output_section->vma
2346 + h->root.root.u.def.section->output_offset);
2349 /* For simplicity of coding, we are going to modify the section
2350 contents, the section relocs, and the BFD symbol table. We
2396 /* Note that we've changed the relocs, section contents,
2457 /* Note that we've changed the relocs, section contents, etc. */
2506 /* Note that we've changed the relocs, section contents,
2565 /* Note that we've changed the relocs, section contents, etc. */
2610 /* Do nothing if this reloc is the last byte in the section. */
2656 /* Note that we've changed the relocs, section contents, etc. */
3290 /* Cache the section contents for elf_link_input_bfd. */
3306 && elf_section_data (section)->this_hdr.contents != contents)
3309 && elf_section_data (section)->relocs != internal_relocs)
3316 referred to by HASH at address ADDR in section with
3416 /* Delete some bytes from a section while relaxing. */
3463 /* Adjust the local symbols defined in this section. */
3474 /* Now adjust the global symbols defined in this section. */
3484 && sym_hash->root.u.def.section == sec
3531 && sym_hash->root.u.def.section == sec
3553 asection *input_section = link_order->u.indirect.section;
3560 particular set of section contents, specially. */
3880 section. */
3956 /* The .dynbss section is a place to put symbols which are defined
3961 section into the .bss section of the final image. */
3967 /* The .rel[a].bss section holds copy relocs. This section is not
3969 linker will map it to an output section. We can't just create it
3974 mapped to the output sections. If the section turns out not to
3976 section when generating a shared object, since they do not use
3995 regular object. The current definition is in some section of the
4021 when we know the address of the .got section. */
4061 h->root.u.def.section = s;
4070 /* We also need to make an entry in the .got.plt section, which
4071 will be placed in the .got section by the linker script. */
4077 /* We also need to make an entry in the .rela.plt section. */
4093 h->root.u.def.section = h->u.weakdef->root.u.def.section;
4120 /* We must allocate the symbol in our .dynbss section, which will
4121 become part of the .bss section of the executable. There will be
4122 an entry for this symbol in the .dynsym section. The dynamic
4136 .rela.bss section we are going to use. */
4137 if ((h->root.u.def.section->flags & SEC_ALLOC) != 0)
4161 /* Define the symbol as being at this point in the section. */
4162 h->root.u.def.section = s;
4165 /* Increment the section size to make room for the symbol. */
4189 /* Set the contents of the .interp section to the interpreter. */
4200 /* We may have created entries in the .rela.got section.
4223 /* It's OK to base decisions on the section name, because none
4224 of the dynobj section names depend upon the input files. */
4246 /* If this relocation section applies to a read only
4247 section, then we probably need a DT_TEXTREL
4248 entry. The entries in the .rela.plt section
4249 really apply to the .got section, which we
4272 /* If we don't need this section, strip it from the
4288 /* Allocate memory for the section contents. We use bfd_zalloc
4290 section's contents are written out. This should not happen,
4300 /* Add some entries to the .dynamic section. We fill in the
4303 size for the .dynamic section. The DT_DEBUG entry is filled
4423 /* Fill in the entry in the .rela.plt section. */
4435 the .plt section. Leave the value alone. */
4466 + h->root.u.def.section->output_section->vma
4467 + h->root.u.def.section->output_offset);
4492 s = bfd_get_section_by_name (h->root.u.def.section->owner,
4497 + h->root.u.def.section->output_section->vma
4498 + h->root.u.def.section->output_offset);