32 if (section ==
nullptr)
33 section = bfd_get_section_by_name (abfd,
"memtag");
37 while (section !=
nullptr)
39 size_t memtag_range_size = section->rawsize;
40 size_t tags_size = bfd_section_size (section);
44 if (memtag_range_size == 0 || tags_size == 0)
46 warning (_(
"Found memtag section with empty memory "
47 "range or empty tag dump"));
52 CORE_ADDR start_address = bfd_section_vma (section);
53 CORE_ADDR end_address = start_address + memtag_range_size;
56 if (address >= start_address
57 && address < end_address)
59 info.start_address = start_address;
60 info.end_address = end_address;
61 info.memtag_section = section;
65 section = bfd_get_next_section_by_name (abfd, section);