Lines Matching defs:section
235 section for each contiguous set of bytes. */
349 /* This data goes at the end of the section we are
536 /* Read the contents of a section in an Intel Hex file. */
539 ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents)
547 if (bfd_seek (abfd, section->filepos, SEEK_SET) != 0)
595 if ((bfd_size_type) (p - contents) >= section->size)
597 /* We've read everything in the section. */
608 if ((bfd_size_type) (p - contents) < section->size)
611 (_("%B: bad section length in ihex_read_section"), abfd);
627 /* Get the contents of a section in an Intel Hex file. */
631 asection *section,
636 if (section->used_by_bfd == NULL)
638 section->used_by_bfd = bfd_alloc (abfd, section->size);
639 if (section->used_by_bfd == NULL)
641 if (! ihex_read_section (abfd, section, section->used_by_bfd))
645 memcpy (location, (bfd_byte *) section->used_by_bfd + offset,
651 /* Set the contents of a section in an Intel Hex file. */
655 asection *section,
665 || (section->flags & SEC_ALLOC) == 0
666 || (section->flags & SEC_LOAD) == 0)
679 n->where = section->lma + offset;