Home | History | Annotate | Download | only in bfd

Lines Matching refs:sec

267 #define BASEADDR(SEC)	((SEC)->output_section->vma + (SEC)->output_offset)
344 asection *sec,
352 if (addr + 4 > sec->size)
424 asection *sec,
432 if (addr + 4 > sec->size)
481 asection *sec,
485 bfd_vma page = PAGENO (BASEADDR (sec) + addr);
491 if (PAGENO (BASEADDR (sec)) == page)
498 while (PAGENO (BASEADDR (sec) + addr - 2) == page)
508 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1)
512 if (ip2k_is_switch_table_256 (abfd, sec, addr, contents) != -1)
535 asection *sec,
551 ip2k_nominal_page_bits (abfd, sec
570 asection *sec,
588 shndx = _bfd_elf_section_from_bfd_section (abfd, sec);
590 irelbase = elf_section_data (sec)->relocs;
591 irelend = irelbase + sec->reloc_count;
608 bfd_vma baseaddr = BASEADDR (sec);
665 if (sym_sec == sec)
670 bfd_vma baseaddr = BASEADDR (sec);
771 && sym_hash->root.u.def.section == sec)
786 asection *sec,
790 bfd_byte *contents = elf_section_data (sec)->this_hdr.contents;
791 bfd_vma endaddr = sec->size;
797 sec->size -= count;
799 adjust_all_relocations (abfd, sec, addr + count, endaddr, -count, 0);
805 asection *sec,
811 elf_section_data (sec)->relocs = misc->irelbase;
812 elf_section_data (sec)->this_hdr.contents = misc->contents;
819 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset, 2))
830 asection *sec,
835 Elf_Internal_Rela *irelend = misc->irelbase + sec->reloc_count;
844 if (addr + 4 > sec->size)
866 if (! ip2k_test_page_insn (abfd, sec, ireltest, misc))
883 if (!ip2k_elf_relax_delete_bytes (abfd, sec, irel->r_offset - 4, 2))
891 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc))
901 asection *sec,
906 Elf_Internal_Rela *irelend = misc->irelbase + sec->reloc_count;
916 if (addr + 4 > sec->size)
939 if (!ip2k_test_page_insn (abfd, sec, ireltest, misc))
967 if (!ip2k_elf_relax_delete_bytes (abfd, sec, addr + 0, 6))
975 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc))
987 asection *sec,
993 Elf_Internal_Rela *irelend = misc->irelbase + sec->reloc_count;
1005 if (BASEADDR (sec) + irel->r_offset < page_start)
1011 if (BASEADDR (sec) + irel->r_offset > page_end)
1016 switch_table_128 = ip2k_is_switch_table_128 (abfd, sec, irel->r_offset, misc->contents);
1017 switch_table_256 = ip2k_is_switch_table_256 (abfd, sec, irel->r_offset, misc->contents);
1025 if (!ip2k_relax_switch_table_128 (abfd, sec, irel, again, misc))
1033 if (!ip2k_relax_switch_table_256 (abfd, sec, irel, again, misc))
1040 if (ip2k_test_page_insn (abfd, sec, irel, misc))
1042 if (!ip2k_delete_page_insn (abfd, sec, irel, again, misc))
1064 asection *sec,
1087 first_section = sec;
1090 if (first_section == sec)
1100 || (sec->flags & SEC_RELOC) == 0
1101 || sec->reloc_count == 0
1102 || (sec->flags & SEC_CODE) == 0)
1107 internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
1116 if (elf_section_data (sec)->this_hdr.contents != NULL)
1117 contents = elf_section_data (sec)->this_hdr.contents;
1121 if (!bfd_malloc_and_get_section (abfd, sec, &contents))
1158 if ((BASEADDR (sec) + sec->size < search_addr)
1159 && (BASEADDR (sec) + sec->size > page_end))
1161 if (BASEADDR (sec) <= page_end)
1164 search_addr = BASEADDR (sec);
1181 if ((BASEADDR (sec) + sec->size >= page_start)
1182 && (BASEADDR (sec) <= page_end))
1184 if (!ip2k_elf_relax_section_page (abfd, sec, &changed, &misc, page_start, page_end))
1202 && elf_section_data (sec)->this_hdr.contents != contents)
1209 elf_section_data (sec)->this_hdr.contents = contents;
1214 && elf_section_data (sec)->relocs != internal_relocs)
1224 && elf_section_data (sec)->this_hdr.contents != contents)
1227 && elf_section_data (sec)->relocs != internal_relocs)
1401 asection * sec;
1413 sec = NULL;
1418 sec = local_sections [r_symndx];
1419 relocation = BASEADDR (sec) + sym->st_value;
1423 name = (name == NULL) ? bfd_section_name (input_bfd, sec) : name;
1432 h, sec, relocation,
1438 if (sec != NULL && discarded_section (sec))