Home | History | Annotate | Download | only in ld

Lines Matching full:sections

220 /* Generic traversal routines for finding matching sections.  */
237 /* Don't process sections from files which were excluded. */
278 for (s = file->the_bfd->sections; s != NULL; s = s->next)
409 /* Compare sections ASEC and BSEC according to SORT. */
464 /* Build a Binary Search Tree to sort sections, unlike insertion sort
466 of sections are large. */
498 /* Use wild_sort_fast to build a BST to sort sections. */
527 /* Convert a sorted sections' BST back to list form. */
558 we would otherwise have to sort the sections to make sure they
579 for (s = file->the_bfd->sections; s != NULL; s = s->next)
609 for (s = file->the_bfd->sections; s != NULL; s = s->next)
647 for (s = file->the_bfd->sections; s != NULL; s = s->next)
696 for (s = file->the_bfd->sections; s != NULL; s = s->next)
1436 and subsequent SPECIAL sections in the hash table chain,
1731 idea is to skip over anything that might be inside a SECTIONS {}
1735 assignment to dot, and assignments before non-alloc sections.
1738 insert non-alloc note sections among assignments setting end of
1908 sections (and thus doesn't have an output bfd_section),
1919 place->section = &link_info.output_bfd->sections;
1948 determine the final load addresses of the orphan sections.
1951 situation of all read-only sections placed in one segment and
1953 sections, we wouldn't want to place an orphan read/write
2078 for (s = file->the_bfd->sections; s != NULL; s = s->next)
2085 fprintf (config.map_file, _("\nDiscarded input sections\n\n"));
2206 /* If there is a base address, make sure that any sections it might
2219 /* Make sure that all output sections mentioned in an expression are
2279 discard all sections. */
2312 /* Discard sections marked with SEC_EXCLUDE. */
2315 /* Discard input sections which are assigned to a section named
2320 /* Discard debugging sections if we are stripping debugging
2358 format targets, .text$foo sections go into .text and it's odd
2537 looking at the sections for this file. */
2565 /* Exclude sections that match UNIQUE_SECTION_LIST. */
2603 /* Check if all sections in a wild statement for a particular FILE
2618 /* Exclude sections that match UNIQUE_SECTION_LIST. */
3327 /* If this was a script with output sections then
3335 einfo (_("%P: warning: %s contains output sections;"
3486 /* Check for all readonly or some readwrite sections. */
3573 /* Don't sort .init/.fini sections. */
3589 /* Open input files and attach to output sections. */
3641 /* Make sure that any sections mentioned in the expression
3682 /* Make sure that any sections mentioned in the assignment
3703 script sections. If we let the orphan placement code
3704 place them in amongst other sections then the address
3705 will affect following script sections, which is
3782 /* Snip out the output sections we are moving. */
3805 /* Move the bfd sections in the same way. */
3828 sections we are moving. So if we find no
3837 link_info.output_bfd->sections = last_sec->next;
3883 sections if they turn out to be not needed. Clean them up here. */
3918 /* Some sections have not yet been sized, notably .gnu.version,
3920 input sections, so don't drop output sections that have such
3921 input sections unless they are also marked SEC_EXCLUDE. */
4649 /* Align this section first to the input sections requirement,
4704 /* Check to see if any allocated sections overlap with other allocated
4705 sections. This can happen if a linker script specifies the output
4706 section addresses of the two sections. Also check whether any memory
4713 asection **sections, **spp;
4726 sections = (asection **) xmalloc (amt);
4728 /* Scan all sections in the output list. */
4730 for (s = link_info.output_bfd->sections; s != NULL; s = s->next)
4732 /* Only consider loadable sections with real contents. */
4738 sections[count] = s;
4745 qsort (sections, (size_t) count, sizeof (asection *),
4748 spp = sections;
4754 /* We must check the sections' LMA addresses not their VMA
4755 addresses because overlay sections can have overlapping VMAs
4764 /* Look for an overlap. We have sorted sections by lma, so we
4775 free (sections);
4778 We do not issue this diagnostic for regions that had sections
4829 /* Set the sizes for all the output sections. */
4842 /* Size up the sections from their constituent parts. */
4958 overridden by the using the --no-check-sections
5005 /* Except for some special linker created sections,
5103 /* Keep track of normal sections using the default
5105 following sections. Overlays or other linker
5109 -Ttext, don't start tracking sections until we find one
5124 /* .tbss sections effectively have zero size. */
5138 since unallocated sections do not contribute to the region's
5397 that the two sections ought to be placed into the same segment. */
5406 sections comingled in the same segment. */
5411 /* Find the memory regions associated with the two sections.
5413 of output sections looking for a matching section pointer because if
5414 we have a large number of sections then a hash lookup is faster. */
5422 /* If the regions are different then force the sections to live in
5470 /* The alignment of sections between DATA_SEGMENT_ALIGN
5477 /* Find maximum alignment power of sections between
5479 for (sec = link_info.output_bfd->sections; sec; sec = sec->next)
5488 between sections won't change. This is better than
5552 /* .tbss sections effectively have zero size. */
5679 .sizeof.section_name. For all the output sections, we look for
5690 for (s = link_info.output_bfd->sections; s != NULL; s = s->next)
5734 --gc-sections. */
5737 einfo (_("%P%F: gc-sections requires either an entry or "
6027 for (s = file->the_bfd->sections; s != NULL; s = s->next)
6164 /* Look through the sections and check for any which should not be
6167 definition errors for symbols which are in sections we aren't
6169 symbols which are defined in sections which are going to be
6285 for (o = link_info.output_bfd->sections; o != NULL; o = o->next)
6303 /* If the wild pattern was marked KEEP, the member sections
6309 /* Iterate over sections marking them against GC. */
6339 /* Keep all sections so marked in the link script. */
6355 for (sec = f->the_bfd->sections; sec != NULL; sec = sec->next)
6375 /* Discarded, excluded and ignored sections effectively have zero
6388 /* Iterate over sections for relro sections. */
6432 /* Check all sections in the link script. */
6441 /* Relax all sections until bfd_relax_section gives up. */
6676 /* Remove unreferenced sections if asked to. */
6685 /* Run through the contours of the script and attach input sections
6686 to the correct output sections. */
6692 /* Find any sections not attached explicitly and handle them. */
6699 /* Merge SEC_MERGE sections. This has to be done after GC of
6700 sections, so that GCed sections are not merged, but before
6701 assigning dynamic symbols, since removing whole input sections
6717 /* Do anything special before sizing sections. This is where ELF
6718 and other back-ends size dynamic sections. */
6725 /* Check relro sections. */
6729 /* Size up the sections. */
7225 header and there are sections in that script which are
7236 einfo (_("%F%P: no sections assigned to phdrs\n"));
7299 /* Record a list of sections which may not be cross referenced. */
7326 /* A list of all the sections in this overlay. */
7363 sections on this one. This will work correctly even if `.' is
7430 looks through all the sections in the overlay and sets them. */