Lines Matching defs:section

125   ((q)->value + outside_section_address (q->section))
160 /* Try processing a section against a wildcard. This just calls
251 /* Routines to find a single section given its name. If there's more
252 than one section with that name, we report that. */
367 asection *section)
383 /* Find the correct node to append this section. */
384 if (compare_section (sec->spec.sorted, section, (*tree)->section) < 0)
398 asection *section,
405 if (unique_section_p (section))
411 node->section = section;
413 tree = wild_sort_fast (ptr, sec, file, section);
428 lang_add_section (&ptr->children, tree->section,
446 /* We can just do a hash lookup for the section with the right name.
447 But if that lookup discovers more than one section with the name
498 /* Note that if the section was not found, s0 is NULL and
502 /* Recall that in this code path, a section cannot satisfy more
695 /* Check that no two specs can match the same section. */
731 given order, because we've already determined that no section
1043 /* For every output section statement added to the list, except the
1181 lang_memory_default (asection *section)
1185 flagword sec_flags = section->flags;
1187 /* Override SEC_DATA to mean a writable section. */
1240 einfo (_("%P%F: failed creating section `%s': %E\n"), name);
1246 /* We have a section of this name, but it might not have the correct
1270 einfo (_("%P%F: failed creating section `%s': %E\n"), name);
1332 /* Try for a rw code section. */
1434 /* Find the last output section before given output statement.
1468 /* Start building a list of statements for this section.
1472 /* If we have found an appropriate place for the output section
1492 /* If the name of the section is representable in C, then create
1493 symbols to mark the start and the end of the section. */
1548 /* Shuffle the bfd section list to make the output file look
1550 if (place->section == NULL
1559 output section. */
1564 place->section = &bfd_section->next;
1567 if (place->section == NULL)
1568 place->section = &output_bfd->sections;
1570 as = *place->section;
1574 /* Put the section at the end of the list. */
1576 /* Unlink the section. */
1584 /* Unlink the section. */
1593 place->section = &snew->next;
1603 section before or amongst the read-only ones. */
1618 before an output section statement are assumed to
1689 /* Do the same for the list of output section statements. */
1843 ud = get_userdata (hash_entry->u.def.section);
1848 init_map_userdata (0, hash_entry->u.def.section, 0);
1849 ud = get_userdata (hash_entry->u.def.section);
1862 /* Initialize an output section. */
1872 einfo (_("%P%F: Illegal use of `%s' section\n"), DISCARD_SECTION_NAME);
1880 einfo (_("%P%F: output format %s cannot represent section called %s\n"),
1990 /* Add SECTION to the output section OUTPUT. Do this by creating a
1996 asection *section,
1999 flagword flags = section->flags;
2005 /* Discard input sections which are assigned to a section named
2018 if (section->output_section == NULL)
2020 /* This prevents future calls from assigning this section. */
2021 section->output_section = bfd_abs_section_ptr;
2026 if (section->output_section == NULL)
2032 flags = section->flags;
2034 /* We don't copy the SEC_NEVER_LOAD flag from an input section
2035 to an output section, because we want to be able to include a
2036 SEC_NEVER_LOAD section in the middle of an otherwise loaded
2037 section (I don't know why we want to do this, but we do).
2039 the embedded SEC_NEVER_LOAD section into a fill. */
2058 init_os (output, section, flags);
2067 output->bfd_section->map_tail.s = section;
2068 section->map_head.s = NULL;
2069 section->map_tail.s = s;
2071 s->map_head.s = section;
2073 output->bfd_section->map_head.s = section;
2076 /* Add a section reference to the list. */
2079 new->section = section;
2080 section->output_section = output->bfd_section;
2090 /* If this is not the first input section, and the SEC_READONLY
2092 input section has it set. */
2102 && output->bfd_section->entsize != section->entsize)))
2111 output->bfd_section->entsize = section->entsize;
2113 /* If SEC_READONLY is not set in the input section, then clear
2114 it from the output section. */
2115 if ((section->flags & SEC_READONLY) == 0)
2119 if (section->flags & SEC_SMALL_DATA)
2122 if (section->alignment_power > output->bfd_section->alignment_power)
2123 output->bfd_section->alignment_power = section->alignment_power;
2125 if (bfd_get_arch (section->owner) == bfd_arch_tic54x
2126 && (section->flags & SEC_TIC54X_BLOCK) != 0)
2138 new section should just go at the end of the current list. */
2144 asection *section)
2153 section_name = bfd_get_section_name (file->the_bfd, section);
2162 /* Sorting by filename takes precedence over sorting by section
2171 /* The PE support for the .idata section as generated by
2188 if (bfd_my_archive (ls->section->owner) != NULL)
2190 ln = bfd_get_filename (bfd_my_archive (ls->section->owner));
2195 ln = ls->section->owner->filename;
2210 ln = ls->section->owner->filename;
2224 if (compare_section (sec->spec.sorted, section, ls->section) < 0)
2237 asection *section,
2244 if (unique_section_p (section))
2247 before = wild_sort (ptr, sec, file, section);
2251 is NULL, then the section should just go at the end
2255 lang_add_section (&ptr->children, section,
2263 lang_add_section (&list, section,
2266 /* If we are discarding the section, LIST.HEAD will
2289 asection *section,
2294 if (unique_section_p (section))
2297 if (section->output_section == NULL && (section->flags & SEC_READONLY) == 0)
2544 the output section. */
2575 /* Remember the section that common is going to in case we
3267 /* The output section gets contents, and then we inspect for
3298 /* Mark the specified section with the supplied address.
3300 If this section was actually a segment marker, then the
3304 command-line) as section directives. We honor the
3305 section directive semantics for backwards compatibilty;
3324 /* An output section might have been removed after its statement was
3385 removed output section statement may still be used. */
3403 asection *section = output_section_statement->bfd_section;
3410 if (section != NULL)
3412 print_dot = section->vma;
3426 minfo ("0x%V %W", section->vma, section->size);
3428 if (section->vma != section->lma)
3429 minfo (_(" load address 0x%V"), section->lma);
3525 if (expld.result.section)
3526 value += expld.result.section->vma;
3542 if (expld.result.section)
3543 value += expld.result.section->vma;
3573 /* Print all symbols defined in a particular section. This is called
3583 && sec == hash_entry->u.def.section)
3591 + hash_entry->u.def.section->output_offset
3592 + hash_entry->u.def.section->output_section->vma));
3614 /* Print information about an input section to the map file. */
3750 minfo (_("Address of section %s set to "), address->section_name);
3779 minfo ("%s+", reloc->section->name);
3935 print_input_section (s->input_section.section);
4041 /* Work out how much this section will move the dot point. */
4051 asection *i = is->section;
4059 /* Align this section first to the input sections requirement,
4060 then to the output section's requirement. If this alignment
4079 /* Remember where in the output section this input section goes. */
4083 /* Mark how big the output section must be to contain this now. */
4119 section addresses of the two sections. */
4175 einfo (_("%X%P: section %s [%V -> %V] overlaps section %s [%V -> %V]\n"),
4200 einfo (_("%X%P: address 0x%v of %B section %s"
4209 einfo (_("%X%P: region %s is full (%B section %s)\n"),
4251 " address expression for section %s\n"),
4254 dot = expld.result.value + expld.result.section->vma;
4258 /* This section was removed or never actually created. */
4261 /* If this is a COFF shared library section, use the size and
4262 address from the input section. FIXME: This is COFF
4276 " section %s\n"), os->name);
4278 input = os->children.head->input_section.section;
4290 /* No matter what happens, an abs section starts at zero. */
4299 /* No address specified for this section, get one
4310 /* If a loadable section is using the default memory
4326 warning because if we allocate the section to the
4336 " for loadable section `%s'\n"),
4341 " for loadable section `%s'\n"),
4352 /* Align to what the section needs. */
4362 einfo (_("%P: warning: changing start of section"
4379 no output section should change from zero size
4381 size on an ignored section indicates that some
4382 input section was not sized early enough. */
4388 /* Put the section within the requested block size, or
4398 /* Set section lma. */
4427 an explicit assignment to the section LMA (ie.
4447 at the end of the previous section. */
4452 as the previous section. */
4497 We only do this if the section is going to be allocated,
4607 i = (*prev)->input_section.section;
4613 einfo (_("%P%F: can't relax section: %E\n"));
4641 /* This symbol is relative to this section. */
4652 /* If we don't have an output section, then just adjust
4668 /* If dot is advanced, this implies that the section
4670 user has explicitly stated that the section
4690 the section and this pad isn't needed, it's possible to
4692 section. bfd_set_section_contents will complain even for
4744 of output sections looking for a matching section pointer because if
4900 + expld.result.section->vma);
4941 asection *in = s->input_section.section;
5018 h->u.def.section = bfd_abs_section_ptr;
5027 h->u.def.section = bfd_abs_section_ptr;
5058 && h->u.def.section->output_section != NULL)
5064 h->u.def.section->output_section)
5065 + h->u.def.section->output_offset);
5087 the first address in the text section. */
5195 correct section. The -sort-common command line switch may be used
5218 /* Place one common symbol in the correct section. */
5225 asection *section;
5237 section = h->u.c.p->section;
5239 /* Increase the size of the section to align the common sym. */
5240 section->size += ((bfd_vma) 1 << (power_of_two + opb_shift)) - 1;
5241 section->size &= (- (bfd_vma) 1 << (power_of_two + opb_shift));
5244 if (power_of_two > section->alignment_power)
5245 section->alignment_power = power_of_two;
5249 h->u.def.section = section;
5250 h->u.def.value = section->size;
5252 /* Increase the size of the section. */
5253 section->size += size;
5255 /* Make sure the section is allocated in memory, and make sure that
5256 it is no longer a common section. */
5257 section->flags |= SEC_ALLOC;
5258 section->flags &= ~SEC_IS_COMMON;
5313 minfo ("%B\n", section->owner);
5319 /* Run through the input files and ensure that every input section has
5334 /* This section of the file is not attached, root
5343 /* This is a lonely common section which must have
5344 come from an archive. We attach to the section
5533 topower (exp_get_value_int (align, -1, "section alignment"));
5584 asection *section,
5591 section->flags |= SEC_KEEP;
5632 and the section containing the entry symbol. */
5642 && ! bfd_is_abs_section (h->u.def.section))
5644 h->u.def.section->flags |= SEC_KEEP;
5685 section sizes. */
5773 /* Look for a text section and set the readonly attribute in it. */
5790 section positions, since they will affect SIZEOF_HEADERS. */
5831 /* Make sure that the section addresses make sense. */
5968 section to generate a reloc against, or NAME is the name of the
5975 asection *section,
5983 p->section = section;
6061 einfo (_("%X%P:%S: section has both a load address and a load region\n"));
6080 address of first byte of the section named.
6106 h->u.def.section = bfd_abs_section_ptr;
6111 address of the first byte after the end of the section named.
6138 h->u.def.section = bfd_abs_section_ptr;
6271 /* If we have not run across a section with a program
6338 einfo (_("%X%P: section `%s' assigned to non-existent phdr `%s'\n"),
6367 /* An expression for the maximum section size seen so far. */
6393 /* Start a section in an overlay. We handle this by calling
6406 /* If this is the first section, then base the VMA of future
6412 /* Remember the section. */
6420 /* Arrange to work out the maximum section end address. */
6427 /* Finish a section in an overlay. There isn't any special to do
6495 /* After setting the size of the last section, set '.' to end of the
6512 /* The first section has the load address specified in the
7000 einfo (_("%X%P: unable to read .exports section contents\n"), sec);
7011 /* Do not include this section in the link. */