Lines Matching defs:to

19    along with this program; if not, write to the Free Software
35 to be written. The code is changing quickly enough that we
56 need to move into elfcode.h. */
189 cause invalid hash tables to be generated. */
214 cause invalid hash tables to be generated. */
267 /* No cached one, attempt to read, and cache what we read. */
271 /* Allocate and clear an extra byte at the end, to prevent crashes
324 /* Read and convert symbols to internal format.
325 SYMCOUNT specifies the number of symbols to read, starting from
327 are non-NULL, they are used to store the internal symbols, external
407 /* Convert the symbols to internal form. */
443 /* Check for a bogus st_shndx to avoid crashing. */
480 /* First we need to ensure the symbol table is available. Make sure
504 is set to -1 if there are no SHT_GROUP sections. */
555 /* Add to list of sections. */
582 to the flag word followed by an array of elf section
624 /* Look through this group's sections to see if current
632 other members to see if any others are linked via
661 /* If the group section has been created, point to the
715 sh_link. We don't want to proceed. */
775 /* Make a BFD section from an ELF section. We store a pointer to the
847 /* The debugging sections appear to be recognized only by name,
886 only link a single copy of the section. This is used to support
889 are permitted. The GNU linker extension is to actually discard
908 /* Look through the phdrs to see if we need to adjust the lma.
927 Note - we used to check the p_paddr field as well, and
928 refuse to set the LMA if it was 0. This is wrong
932 executables need to be able to have a segment which
946 /* We used to use the same adjustment for SEC_LOAD
980 Helper functions for GDB to locate the string tables.
981 Since BFD hides string tables from callers, GDB needs to use an
982 internal hook to find them. Sun's .stabstr, in particular,
983 isn't even pointed to by the .stab section, so ordinary
984 mechanisms wouldn't work to find it, even if we had some.
1020 be against the same symbol. In such a case, we don't want to
1105 /* Copy the program header and other data from one object module to
1544 /* Copy data from an indirect symbol to its direct symbol, hiding the
1545 old indirect symbol. Also used for copying flags to a weakdef. */
1554 /* Copy down any references that we may have already seen to the
1666 /* This is a hook for the ELF emulation code in the generic linker to
1667 tell the backend linker what file name to use for the DT_NEEDED
1724 passed to bfd_elf_set_dt_needed_name, or it is the filename. */
1817 /* Allocate an ELF string table--force the first byte to be zero. */
2019 regular section. We need to scan all the headers to be sure,
2058 /* Check for a bogus link to avoid crashing. */
2072 reject them, but, unfortunately, some people need to use
2074 one suitable symbol table, we clobber the sh_link to point
2075 to it. I hope this doesn't break anything. */
2110 can't use it as a reloc section if it points to the null
2144 /* In the section to which the relocations apply, mark whether
2174 and it's handy to have the signature available as the section
2193 /* We try to keep the same section order as it comes in. */
2228 /* FIXME: How to properly handle allocated section reserved
2231 (_("%B: don't know how to handle allocated, application "
2243 (_("%B: don't know how to handle processor specific section "
2251 required to correctly process the section and the file should
2254 (_("%B: don't know how to handle OS specific section "
2264 (_("%B: don't know how to handle section `%s' [0x%8x]"),
2562 /* When we read a file, we don't need to set ELF section type and
2942 this section, it is up to the processor-specific back-end to
2991 /* Arrange for the section to be written out. */
3002 /* Get the pointer to the first section in the group that gas
3003 squirreled away here. objcopy arranges for this to be set to the
3009 just to keep the group in the same order as given in .section
3190 table. sh_info is the section index of the section to which
3203 /* We need to set up sh_link for SHF_LINK_ORDER. */
3209 /* elf_linked_to_section points to the input section. */
3217 (_("%B: sh_link of section `%A' points to discarded section `%A' of `%B'"),
3220 /* Point to the kept section if it has the same
3240 (_("%B: sh_link of section `%A' points to removed section `%A' of `%B'"),
3271 table. sh_info is the section index of the section to
3279 /* We look up the section the relocs apply to by name. */
3294 field to point to this section. */
3367 /* Map symbol from it's internal number to the external number, moving
3368 all local symbols to be at the head of the list. */
3383 /* Don't output section symbols for sections that are not going to be
3431 decided to output. */
3518 /* Align to the maximum file alignment that could be required for any
3527 /* Assign a file position to a section, optionally aligning to the
3551 /* Compute the file positions we are going to put the sections at, and
3552 otherwise prepare to begin writing out the ELF file. If LINK_INFO
3734 /* Create a mapping from a set of sections to a program segment. */
3740 unsigned int to,
3749 amt += (to - from - 1) * sizeof (asection *);
3755 for (i = from, hdrpp = sections + from; i < to; i++, hdrpp++)
3757 m->count = to - from;
3834 /* Set up a mapping from BFD sections to program segments. */
3935 is not adjacent to the program headers. This is an
3976 /* If putting this section in this segment would force us to
3983 /* We don't want to put a loadable section after a
3991 don't require the sections to be correctly aligned in the
4001 /* We don't want to put a writable section in a read only
4016 /* Allow interested parties a chance to override our decision. */
4216 /* Sort by LMA first, since this is the address used to
4239 here, but continue to try the next comparison. */
4251 /* Sort by size, to put zero sized sections
4268 not good. We have to make sure either that the number is not
4274 What we're trying to say here is something like ``increase OFF by
4275 the least amount that will cause it to be equal to the VMA modulo
4294 /* Assign file positions to the sections based on the mapping from
4295 sections to segments. This function also sets up some fields in
4357 not be done to the PT_NOTE section of a corefile, which may
4367 number of sections with contents contributing to both p_filesz
4369 that just contribute to p_memsz. In this loop, OFF tracks next
4452 /* If a segment starts with .tbss, we need to look
4453 at the next section to decide whether the segment
4467 /* We shouldn't need to align the segment on disk since
4470 checks it. So to comply with the alignment
4645 /* .tbss is special. It doesn't contribute to p_memsz of
4739 /* We don't need to page align empty sections. */
4877 "side-channel" data attached to a section to which they apply, and
4937 assignment of sections to segments. */
5015 /* There used to be a long list of cases here, each one setting
5016 e_machine to the same EM_* macro #defined as ELF_MACHINE_CODE
5022 e_machine with the conditions used to determine it. */
5113 /* After writing the headers, we need to write the sections too... */
5151 /* Given a section, search the header to find them. */
5305 /* The complicated case when p_vaddr is 0 is to handle the Solaris
5307 p_memsz set to 0. */
5325 4. The section has not already been allocated to a previous segment.
5364 It is possible to have overlapping VMA ranges without overlapping LMA
5366 to the same VMA range, but with the .data section mapped to a different
5381 parameters to objcopy. Also, fix some solaris weirdness. */
5393 /* Mininal change so that the normal section to segment
5414 /* Extend SEGMENT2 to include SEGMENT and then delete
5435 /* Extend SEGMENT to include SEGMENT2 and then delete
5452 /* The second scan attempts to assign sections to segments. */
5487 /* Allocate a segment map big enough to contain
5495 /* Initialise the fields of the segment map. Default to
5503 no need to preserve segment physical address in the corresponding
5549 to add their corresponding output sections to the segment map.
5550 The problem here is how to handle an output section which has
5554 In this case we can continue to use the segment LMA from the
5558 In this case we can change the segment's LMA to match the LMA
5563 placed in the current segment which will have to have its size,
5565 have to be created to contain the other sections.
5568 In this case we can change the segment's LMA to match the LMA
5569 of the first section and we will have to create a new segment
5570 or segments to contain the other sections.
5572 In order to save time, we allocate an array to hold the section
5574 to a segment, they are removed from this array. */
5577 to work around this long long bug. */
5583 Also add the sections to the section array allocated above.
5584 Also add the sections to the current segment. In the common
5587 more to do. */
5602 /* The Solaris native linker always sets p_paddr to 0.
5603 We try to catch that case here, and set it to the
5648 specified. This is the default case. Add the segment to
5649 the list of built segments and carry on to process the next
5670 Keep it, but modify its physical address to match the
5677 Change the current segment's physical address to match
5683 to allow for space taken up by elf headers. */
5694 to hold these headers, so that we can adjust the
5702 those that fit to the current segment and removing them from the
5703 sections array; but making sure not to leave large gaps. Once all
5704 possible sections have been assigned to the current segment it is
5705 added to the list of built segments and if sections still remain
5706 to be assigned, a new segment is constructed before repeating
5750 maxpagesize then we need to start a new segment. */
5775 /* Add the current segment to the list of built segments. */
5781 /* We still have not allocated all of the sections to
5794 physical address to the LMA of the first section that has
5812 p_paddr fields are zero. When we try to objcopy or strip such a
5824 /* If we had to estimate the number of program headers that were
5825 going to be needed, then check our estimate now and adjust
5882 /* FIXME: Do we need to copy PT_NULL segment? */
5900 /* Allocate a segment map big enough to contain
5986 /* Check to see if any sections in the input BFD
6004 and p_memsz fields of special segments (DYNAMIC, INTERP) to 0
6026 removed. What else do we need to check? */
6039 /* Check to see if any output section do not come from the
6075 output BFD section flags have been set to something different.
6088 to the input group members. Ignore linker created group section.
6104 /* We need to handle elf_linked_to_section for SHF_LINK_ORDER. We
6105 don't use the output section of the linked-to section since it
6196 which we did not map into a BFD section, try to map the section
6433 knew what to expect of the library, and what to
6436 section of a symbol to be a section that is
6442 Unable to find equivalent output section for symbol '%s' from section '%s'"),
6535 /* Return the number of bytes required to hold the symtab vector.
6633 or SHT_RELA, and uses the dynamic symbol table, is considered to be a
6666 dynamic symbol table, is considered to be a dynamic reloc section. */
6863 index. Therefore we have to run through all entries and find
7071 underscore to be emitted on some ELF targets). For ease of use,
7102 /* Find the function to a particular section and offset,
7117 /* ??? Given multiple file symbols, it is impossible to reliably
7120 global symbols. The ELF spec may be interpreted to say that a
7122 ld -r doesn't do this. So, for ld -r output, it is possible to
7179 /* Find the nearest line to a particular section and offset,
7248 /* After a call to bfd_find_nearest_line, successive calls to
7249 bfd_find_inliner_info can be used to get source information about
7251 passed to bfd_find_nearest_line. Currently this is only supported
7327 /* Try to convert a non-ELF reloc into an ELF one. */
7339 /* Alien reloc: Try to determine its type to replace it with an
7438 range-checking to interfere. There is nothing else to do in processing
7454 machine-dependent procfs structure in order to pick
7478 reference to NAME, so you shouldn't deallocate or
7500 actually creates up to two pseudosections:
7604 /* Fail - we don't know how to handle any other
7626 but it doesn't matter, because we don't have to pick this
7733 /* Fail - we don't know how to handle any other
7888 /* FIXME: need to add ->core_command. */
7979 case NT_FPREGSET: /* FIXME: rename to NT_PRFPREG */
8070 /* NetBSD-specific core "procinfo". Note that we expect to
8218 tid from the previous call to pass down to the next gregs
8240 buffer to hold note, and current size of buffer
8246 Writes note to end of buffer. ELF64 notes are written exactly as
8248 that they ought to have 8-byte namesz and descsz field, and have
8252 Pointer to realloc'd buffer, *BUFSIZ updated. */
8579 /* Providing external access to the ELF program header table. */
8581 /* Return an upper bound on the number of bytes required to store a
8597 /* Copy ABFD's program header table entries to *PHDRS. The entries
8600 buffer needs to be, call bfd_get_elf_phdr_upper_bound.
8714 other SEC_MERGE section. In this case, we need to leave
8764 points to. If not null, *LOADBASEP is filled in with the difference
8768 The function TARGET_READ_MEMORY is called to copy LEN bytes from the
8902 /* Sort references to symbols by ascending section number. */
9001 /* If both are .gnu.linkonce sections, they have to have the same
9008 /* Both sections have to be in ELF. */
9019 /* If both are members of section groups, they have to have the