Lines Matching defs:section

107   /* The offset from the beginning of the .got section to the entry
252 a readonly section. */
262 16 bit function, this points to the section containing the stub. */
270 32 bit function, this points to the section containing the stub. */
310 /* String section indices for the dynamic section symbols. */
315 /* The size of the .compact_rel section (if SGI_COMPAT). */
378 /* These structures are used to generate the .compact_rel section on
533 /* The name of the options section. */
537 /* True if NAME is the recognized name of any SHT_MIPS_OPTIONS section.
542 /* Whether the section is readonly. */
547 /* The name of the stub section. */
597 two relocation sections for this section, one of them is REL and
599 in range for the first relocation section, check that the external
601 rel_idx is not in range for the first section, and this first
602 section contains REL relocs, then the relocation is in the second
603 section, that is RELA. */
612 /* The name of the dynamic relocation section. */
625 /* The offset of $gp from the beginning of the .got section. */
655 section. */
712 information will indicate which symbol the section is for.
869 /* Read ECOFF debugging information from a .mdebug section into a
873 _bfd_mips_elf_read_ecoff_info (bfd *abfd, asection *section,
887 if (! bfd_get_section_contents (abfd, section, ext_hdr, 0,
975 /* Create a runtime procedure table from the .mdebug section. */
1090 /* Set the size and contents of .rtproc section. */
1094 /* Skip this section later on (I don't think this currently
1194 R_MIPS16_26 reloc to be against a section, so the addend is
1330 if (bfd_is_com_section (symbol->section))
1335 relocation += symbol->section->output_section->vma;
1336 relocation += symbol->section->output_offset;
1341 /* Set val to the offset into the section or symbol. */
1346 /* Adjust val for the final section location and GP value. If we
1371 R_MIPS_GOT16. REL is the relocation, INPUT_SECTION is the section
1523 relocation against a section symbol. Add in the section's
1525 val += symbol->section->output_section->vma;
1526 val += symbol->section->output_offset;
1574 /* Swap an entry in a .gptab section. Note that these routines rely
1621 /* A .reginfo section holds a single Elf32_RegInfo structure. These
1649 /* In the 64 bit ABI, the .MIPS.options section holds register
1689 in->section = H_GET_16 (abfd, ex->section);
1701 H_PUT_16 (abfd, in->section, ex->section);
1768 section, and we must set the size of the .mdebug section before we
1853 sec = h->root.root.u.def.section;
1900 sec = h->root.root.u.def.section;
1924 sec = hd->root.root.u.def.section;
2054 /* Return the dynamic relocation section. If it doesn't exist, try to
2085 /* Returns the GOT section for ABFD. */
2099 section. */
2426 got_value = (htab->root.hgot->root.u.def.section->output_section->vma
2427 + htab->root.hgot->root.u.def.section->output_offset
2504 && h->root.u.def.section->output_section)
2506 + h->root.u.def.section->output_offset
2507 + h->root.u.def.section->output_section->vma);
2528 && h->root.u.def.section->output_section)
2530 + h->root.u.def.section->output_offset
2531 + h->root.u.def.section->output_section->vma);
2748 section symbols are added and the count is higher. */
3258 the (primary) GOT section to the entry in G corresponding to the
3735 /* Create the .compact_rel section. */
3761 /* Create the .got section to hold the global offset table. */
3838 /* VxWorks also needs a .got.plt section. */
3899 /* The place (section offset or address) of the storage unit being
3908 /* The section in which the symbol referenced by the relocation is
4033 && h->root.root.u.def.section)
4035 sec = h->root.root.u.def.section;
4289 /* If we've written this relocation for a readonly section,
4626 appropriate position. The SECTION is the section to which the
4730 /* Returns TRUE if SECTION is a MIPS16 stub section. */
4733 mips16_stub_section_p (bfd *abfd ATTRIBUTE_UNUSED, asection *section)
4735 const char *name = bfd_get_section_name (abfd, section);
4741 /* Add room for N relocations to the .rel(a).dyn section in ABFD. */
4858 /* Instead of generating a relocation using the section
4863 which is mandated by the ABI for section symbols. In
4866 section-relative relocations. It's not like they're
4948 /* Make sure the output section is writable. The dynamic linker
4984 /* If we've written this relocation for a readonly section,
5105 section. This approach is copied from ecoff.c. */
5110 /* MIPS ELF also uses an acommon section, which represents an
5117 /* Handle the special MIPS section numbers that a symbol may use.
5129 /* This section is used in a dynamically linked executable file.
5130 It is an allocated common section. The dynamic linker can
5133 we can consider these symbols to be in a new section. */
5136 /* Initialize the acommon section. */
5144 mips_elf_acom_symbol.section = &mips_elf_acom_section;
5147 asym->section = &mips_elf_acom_section;
5161 /* Initialize the small common section. */
5169 mips_elf_scom_symbol.section = &mips_elf_scom_section;
5172 asym->section = &mips_elf_scom_section;
5177 asym->section = bfd_und_section_ptr;
5182 asection *section = bfd_get_section_by_name (abfd, ".text");
5185 if (section != NULL)
5187 asym->section = section;
5189 to the base of the .text section. So substract the section
5191 asym->value -= section->vma;
5198 asection *section = bfd_get_section_by_name (abfd, ".data");
5201 if (section != NULL)
5203 asym->section = section;
5205 to the base of the .data section. So substract the section
5207 asym->value -= section->vma;
5225 an empty .gcc_compiled_longXX section, where XX is the size of longs
5234 - If ABFD contains a .gcc_compiled_longXX section, use it to
5283 relocations against two unnamed section symbols to resolve to the
5293 We can work around this problem by giving names to local section symbols.
5303 /* Work over a section just before writing it out. This routine is
5335 /* We stored the section contents in the tdata field in the
5336 set_section_contents routine. We save the section contents
5339 through the section contents to see if there is an
5434 /* Handle a MIPS specific section when reading an object file. This
5435 is called when elfcode.h finds a section with an unknown type.
5528 /* FIXME: We should record sh_info for a .gptab section. */
5530 /* For a .reginfo section, set the gp value in the tdata information
5531 from the contents of this section. We need the gp value while
5532 processing relocs, so we just get it now. The .reginfo section
5546 /* For a SHT_MIPS_OPTIONS section, look for a ODK_REGINFO entry, and
5608 /* Set the correct type for a MIPS ELF section. We do this by the
5609 section name, which is a hack, but ought to work. This routine is
5636 /* In a shared object on IRIX 5.3, the .mdebug section has an
5646 /* In a shared object on IRIX 5.3, the .reginfo section has an
5725 /* Given a BFD section, try to locate the corresponding ELF section
5729 the .scommon section. */
5750 file. We must handle the special MIPS section numbers here. */
5798 /* This section is used in a shared object. */
5814 /* Initialize the section. */
5828 elf_text_symbol->section = elf_text_section;
5839 /* This section is used in a shared object. */
5855 /* Initialize the section. */
5869 elf_data_symbol->section = elf_data_section;
5959 /* The psABI requires a read-only .dynamic section, but the VxWorks
5971 /* We need to create .got section. */
5978 /* Create .stub section. */
6026 /* We need to create a .compact_rel section. */
6072 /* __rld_map is a four byte word located in the .data section
6139 /* Look through the relocs for a section during the first phase, and
6436 (_("%B: Malformed reloc detected for section %s"),
6764 References from a stub section do not count. */
6842 && h->root.root.u.def.section)
6847 sym_sec = h->root.root.u.def.section;
6901 /* Get the section contents if we haven't done so already. */
6937 /* Cache the section contents for elf_link_input_bfd. */
6952 regular object. The current definition is in some section of the
7007 /* We need .stub section. */
7012 h->root.u.def.section = s;
7022 of this symbol in .dynsym section. */
7042 h->root.u.def.section = h->u.weakdef->root.u.def.section;
7123 h->root.u.def.section = htab->splt;
7158 h->root.u.def.section = h->u.weakdef->root.u.def.section;
7168 /* We must allocate the symbol in our .dynbss section, which will
7169 become part of the .bss section of the executable. There will be
7170 an entry for this symbol in the .dynsym section. The dynamic
7178 if ((h->root.u.def.section->flags & SEC_ALLOC) != 0)
7188 /* Return the number of dynamic section symbols required by OUTPUT_BFD.
7237 /* The .reginfo section has a fixed size. */
7290 At this point, dynsymcount does not account for section symbols
7370 /* Set the contents of the .interp section to the interpreter. */
7391 /* It's OK to base decisions on the section name, because none
7392 of the dynobj section names depend upon the input files. */
7405 /* If this relocation section applies to a read only
7406 section, then we probably need a DT_TEXTREL entry.
7407 If the relocation section is .rel(a).dyn, we always
7409 there exists a relocation to a read only section or
7521 of .text section. So put a dummy. XXX */
7552 /* Allocate memory for this section last, since we may increase its
7560 /* Allocate memory for the section contents. */
7569 /* Allocate memory for the .rel(a).dyn section. */
7582 /* Add some entries to the .dynamic section. We fill in the
7585 the .dynamic section. */
7727 /* Adjust REL's addend to account for section merging. */
7740 /* Relocate a MIPS ELF section. */
7802 sec = h->root.u.def.section;
7809 section contents zeroed. Avoid any special processing. */
7820 lowermost or uppermost 32-bit section of the 64-bit address
7915 (_("%B: Can't find matching LO16 reloc against `%s' for %s at 0x%lx in section `%A'"),
8421 /* IRIX6 does not use a .rld_map section. */
8590 rel.r_offset = (h->root.u.def.section->output_section->vma
8591 + h->root.u.def.section->output_offset
8625 got_value = (htab->root.hgot->root.u.def.section->output_section->vma
8626 + htab->root.hgot->root.u.def.section->output_offset
8774 of the ".got" section in DYNOBJ. */
8931 ".dynamic" section. The second is initialized by the
9030 /* Adjust the section size too. Tools like the prelinker
9053 /* Write .compact_rel section out. */
9241 info for each special section. */
9354 /* If there is a .reginfo section, we need a PT_MIPS_REGINFO
9391 for this section, so don't create another. I'm not sure this
9429 for the RTPROC header. FIXME: Rewrite without section names. */
9491 /* GNU/Linux binaries do not need the extended PT_DYNAMIC section.
9565 .dynamic to be in a read-only segment, and the section will often
9595 /* Return the section that should be marked against GC for a given
9618 /* Update the got entry reference counts for the section being removed. */
9878 _bfd_mips_elf_find_nearest_line (bfd *abfd, asection *section,
9886 if (_bfd_dwarf1_find_nearest_line (abfd, section, symbols, offset,
9891 if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
9960 if (_bfd_ecoff_locate_line (abfd, section, offset, &fi->d, swap,
9973 return _bfd_elf_find_nearest_line (abfd, section, symbols, offset,
9993 /* When are writing out the .options or .MIPS.options section,
9998 _bfd_mips_elf_set_section_contents (bfd *abfd, sec_ptr section,
10002 if (MIPS_ELF_OPTIONS_SECTION_NAME_P (section->name))
10006 if (elf_section_data (section) == NULL)
10009 section->used_by_bfd = bfd_zalloc (abfd, amt);
10010 if (elf_section_data (section) == NULL)
10013 c = mips_elf_section_data (section)->u.tdata;
10016 c = bfd_zalloc (abfd, section->size);
10019 mips_elf_section_data (section)->u.tdata = c;
10025 return _bfd_elf_set_section_contents (abfd, section, location, offset,
10042 bfd *input_bfd = link_order->u.indirect.section->owner;
10043 asection *input_section = link_order->u.indirect.section;
10057 /* read in the section */
10305 the lowest index it may use is. That's the number of section
10309 section above. */
10334 + h->u.def.section->output_section->vma
10335 + h->u.def.section->output_offset);
10341 elf_gp (abfd) = (h->u.def.section->output_section->vma
10342 + h->u.def.section->output_offset
10348 /* Find the GP-relative section with the lowest offset. */
10377 /* We have found the .reginfo section in the output file.
10394 input_section = p->u.indirect.section;
10410 mips_elf32_section_processing when the section is
10414 elf_link_input_bfd ignores this section. */
10421 /* Skip this section later on (I don't think this currently
10433 /* We have found the .mdebug section in the output file.
10512 input_section = p->u.indirect.section;
10520 doing with a .mdebug section, but I don't really
10594 elf_link_input_bfd ignores this section. */
10600 /* Create .rtproc section. */
10632 /* Set the size of the .mdebug section. */
10635 /* Skip this section later on (I don't think this currently
10667 input_section = p->u.indirect.section;
10670 elf_link_input_bfd ignores this section. */
10674 /* Skip this section later on (I don't think this
10678 /* Really remove the section. */
10694 (_("%s: illegal section name `%s'"),
10703 no .sdata or .sbss section in the output file, in which
10704 case we must change the name of the output section. */
10741 input_section = p->u.indirect.section;
10744 /* Combine the gptab entries for this input section one
10823 elf_link_input_bfd ignores this section. */
10847 /* Skip this section later on (I don't think this currently