Lines Matching refs:contents
340 bfd_byte *contents, bfd_vma offset, in elf32_h8_final_link_relocate() argument
346 bfd_byte *hit_data = contents + offset; in elf32_h8_final_link_relocate()
430 bfd_byte *contents, Elf_Internal_Rela *relocs, in elf32_h8_relocate_section() argument
481 rel, 1, relend, howto, 0, contents); in elf32_h8_relocate_section()
488 contents, rel->r_offset, in elf32_h8_relocate_section()
699 bfd_byte *contents = NULL; in elf32_h8_relax_section() local
760 if (contents == NULL) in elf32_h8_relax_section()
763 if (elf_section_data (sec)->this_hdr.contents != NULL) in elf32_h8_relax_section()
764 contents = elf_section_data (sec)->this_hdr.contents; in elf32_h8_relax_section()
768 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in elf32_h8_relax_section()
776 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_h8_relax_section()
857 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
858 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
861 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
926 contents + last_reloc->r_offset - 1); in elf32_h8_relax_section()
930 contents + last_reloc->r_offset - 1); in elf32_h8_relax_section()
945 bfd_put_8 (abfd, 0x55, contents + irel->r_offset - 1); /* bsr8. */ in elf32_h8_relax_section()
948 bfd_put_8 (abfd, 0x40, contents + irel->r_offset - 1); /* bra8. */ in elf32_h8_relax_section()
993 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
994 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
997 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1004 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1013 bfd_put_8 (abfd, code, contents + irel->r_offset - 2); /* bCC:8. */ in elf32_h8_relax_section()
1017 bfd_put_8 (abfd, 0x55, contents + irel->r_offset - 2); /* bsr8. */ in elf32_h8_relax_section()
1061 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
1062 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
1065 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1072 temp_code = code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1084 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1089 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1095 bfd_put_8 (abfd, 0x7f, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1102 bfd_put_8 (abfd, 0x7e, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1149 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
1150 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
1153 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1160 temp_code = code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1173 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1178 contents + irel->r_offset - 2); in elf32_h8_relax_section()
1184 bfd_put_8 (abfd, 0x7f, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1191 bfd_put_8 (abfd, 0x7e, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1239 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
1240 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
1247 op_ptr = contents + irel->r_offset - 4; in elf32_h8_relax_section()
1312 op_ptr = contents + irel->r_offset - 2; in elf32_h8_relax_section()
1325 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1332 bfd_put_8 (abfd, code, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1383 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
1384 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
1388 op0 = bfd_get_8 (abfd, contents + irel->r_offset - 4); in elf32_h8_relax_section()
1389 op1 = bfd_get_8 (abfd, contents + irel->r_offset - 3); in elf32_h8_relax_section()
1390 op2 = bfd_get_8 (abfd, contents + irel->r_offset - 2); in elf32_h8_relax_section()
1391 op3 = bfd_get_8 (abfd, contents + irel->r_offset - 1); in elf32_h8_relax_section()
1422 bfd_put_8 (abfd, op0n, contents + irel->r_offset - 4); in elf32_h8_relax_section()
1423 bfd_put_8 (abfd, op1n, contents + irel->r_offset - 3); in elf32_h8_relax_section()
1447 && symtab_hdr->contents != (unsigned char *) isymbuf) in elf32_h8_relax_section()
1452 symtab_hdr->contents = (unsigned char *) isymbuf; in elf32_h8_relax_section()
1455 if (contents != NULL in elf32_h8_relax_section()
1456 && elf_section_data (sec)->this_hdr.contents != contents) in elf32_h8_relax_section()
1459 free (contents); in elf32_h8_relax_section()
1463 elf_section_data (sec)->this_hdr.contents = contents; in elf32_h8_relax_section()
1475 && symtab_hdr->contents != (unsigned char *) isymbuf) in elf32_h8_relax_section()
1477 if (contents != NULL in elf32_h8_relax_section()
1478 && elf_section_data (sec)->this_hdr.contents != contents) in elf32_h8_relax_section()
1479 free (contents); in elf32_h8_relax_section()
1493 bfd_byte *contents; in elf32_h8_relax_delete_bytes() local
1504 contents = elf_section_data (sec)->this_hdr.contents; in elf32_h8_relax_delete_bytes()
1512 memmove (contents + addr, contents + addr + count, in elf32_h8_relax_delete_bytes()
1527 isym = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_h8_relax_delete_bytes()
1574 isym = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_h8_symbol_address_p()
1621 || elf_section_data (input_section)->this_hdr.contents == NULL) in elf32_h8_get_relocated_section_contents()
1629 memcpy (data, elf_section_data (input_section)->this_hdr.contents, in elf32_h8_get_relocated_section_contents()
1647 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_h8_get_relocated_section_contents()
1687 && symtab_hdr->contents != (unsigned char *) isymbuf) in elf32_h8_get_relocated_section_contents()
1699 && symtab_hdr->contents != (unsigned char *) isymbuf) in elf32_h8_get_relocated_section_contents()