Lines Matching refs:contents

887 			   bfd_byte *    contents,  in mn10300_do_tls_transition()  argument
890 bfd_byte *op = contents + offset; in mn10300_do_tls_transition()
1062 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10300_elf_check_relocs()
1425 bfd_byte *contents, in mn10300_elf_final_link_relocate() argument
1440 bfd_byte * hit_data = contents + offset; in mn10300_elf_final_link_relocate()
1592 (bfd_byte *) (((Elf32_External_Rela *) sreloc->contents) in mn10300_elf_final_link_relocate()
1820 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + htab->tls_ldm_got.offset); in mn10300_elf_final_link_relocate()
1821 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + htab->tls_ldm_got.offset+4); in mn10300_elf_final_link_relocate()
1825 (bfd_byte *) ((Elf32_External_Rela *) srelgot->contents in mn10300_elf_final_link_relocate()
1858 if (sgot->contents != NULL in mn10300_elf_final_link_relocate()
1871 sgot->contents + off); in mn10300_elf_final_link_relocate()
1882 bfd_put_32 (output_bfd, value, sgot->contents + (off & ~ 1)); in mn10300_elf_final_link_relocate()
1885 bfd_put_32 (output_bfd, value, sgot->contents + off); in mn10300_elf_final_link_relocate()
1907 srelgot->contents) in mn10300_elf_final_link_relocate()
1924 srelgot->contents) in mn10300_elf_final_link_relocate()
1986 bfd_byte *contents, in mn10300_elf_relocate_section() argument
2046 contents, rel->r_offset); in mn10300_elf_relocate_section()
2117 rel, 1, relend, howto, 0, contents); in mn10300_elf_relocate_section()
2124 contents, rel->r_offset, in mn10300_elf_relocate_section()
2304 unsigned char *contents) in compute_function_info() argument
2317 byte1 = bfd_get_8 (abfd, contents + addr); in compute_function_info()
2318 byte2 = bfd_get_8 (abfd, contents + addr + 1); in compute_function_info()
2324 byte1 = bfd_get_8 (abfd, contents + addr); in compute_function_info()
2325 byte2 = bfd_get_8 (abfd, contents + addr + 1); in compute_function_info()
2373 int temp = bfd_get_8 (abfd, contents + addr + 2); in compute_function_info()
2380 int temp = bfd_get_16 (abfd, contents + addr + 2); in compute_function_info()
2405 bfd_byte *contents; in mn10300_elf_relax_delete_bytes() local
2416 contents = elf_section_data (sec)->this_hdr.contents; in mn10300_elf_relax_delete_bytes()
2453 memmove (contents + addr, contents + addr + count, in mn10300_elf_relax_delete_bytes()
2473 bfd_put_8 (abfd, (bfd_vma) NOP_OPCODE, contents + toaddr - count + i); in mn10300_elf_relax_delete_bytes()
2493 isym = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10300_elf_relax_delete_bytes()
2656 bfd_byte *contents = NULL; in mn10300_elf_relax_section() local
2688 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10300_elf_relax_section()
2715 if (elf_section_data (section)->this_hdr.contents != NULL) in mn10300_elf_relax_section()
2716 contents = elf_section_data (section)->this_hdr.contents; in mn10300_elf_relax_section()
2721 &contents)) in mn10300_elf_relax_section()
2725 contents = NULL; in mn10300_elf_relax_section()
2818 contents + irel->r_offset - 1); in mn10300_elf_relax_section()
2913 isym->st_value, contents); in mn10300_elf_relax_section()
2927 contents); in mn10300_elf_relax_section()
2938 if (contents != NULL in mn10300_elf_relax_section()
2939 && elf_section_data (section)->this_hdr.contents != contents) in mn10300_elf_relax_section()
2942 free (contents); in mn10300_elf_relax_section()
2946 elf_section_data (section)->this_hdr.contents = contents; in mn10300_elf_relax_section()
2949 contents = NULL; in mn10300_elf_relax_section()
2954 && symtab_hdr->contents != (unsigned char *) isymbuf) in mn10300_elf_relax_section()
2961 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3031 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10300_elf_relax_section()
3066 if (elf_section_data (section)->this_hdr.contents != NULL) in mn10300_elf_relax_section()
3067 contents = elf_section_data (section)->this_hdr.contents; in mn10300_elf_relax_section()
3072 &contents)) in mn10300_elf_relax_section()
3134 elf_section_data (section)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3135 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3189 elf_section_data (section)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3190 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3248 if (contents != NULL in mn10300_elf_relax_section()
3249 && elf_section_data (section)->this_hdr.contents != contents) in mn10300_elf_relax_section()
3252 free (contents); in mn10300_elf_relax_section()
3255 elf_section_data (section)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3257 contents = NULL; in mn10300_elf_relax_section()
3262 && symtab_hdr->contents != (unsigned char *) isymbuf) in mn10300_elf_relax_section()
3268 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3275 contents = NULL; in mn10300_elf_relax_section()
3342 if (contents == NULL) in mn10300_elf_relax_section()
3345 if (elf_section_data (sec)->this_hdr.contents != NULL) in mn10300_elf_relax_section()
3346 contents = elf_section_data (sec)->this_hdr.contents; in mn10300_elf_relax_section()
3350 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in mn10300_elf_relax_section()
3358 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10300_elf_relax_section()
3502 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3510 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3511 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3514 bfd_put_8 (abfd, 0xfc, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3515 bfd_put_8 (abfd, 0xff, contents + irel->r_offset); in mn10300_elf_relax_section()
3538 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3544 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 4); in mn10300_elf_relax_section()
3546 contents + irel->r_offset + 5); in mn10300_elf_relax_section()
3571 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3578 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3579 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3583 bfd_put_8 (abfd, 0xcc, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3585 bfd_put_8 (abfd, 0xcd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3587 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
3620 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3628 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3629 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3632 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3633 bfd_put_8 (abfd, 0xff, contents + irel->r_offset); in mn10300_elf_relax_section()
3654 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3660 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 2); in mn10300_elf_relax_section()
3662 contents + irel->r_offset + 3); in mn10300_elf_relax_section()
3679 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3686 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3687 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3690 bfd_put_8 (abfd, 0xca, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3736 code = bfd_get_8 (abfd, contents + irel->r_offset + 1); in mn10300_elf_relax_section()
3761 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3777 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3778 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3826 bfd_put_8 (abfd, code, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
3862 code = bfd_get_8 (abfd, contents + irel->r_offset - 3); in mn10300_elf_relax_section()
3867 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
3886 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3887 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3890 bfd_put_8 (abfd, 0xfb, contents + irel->r_offset - 3); in mn10300_elf_relax_section()
3891 bfd_put_8 (abfd, code, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
3961 code = bfd_get_8 (abfd, contents + irel->r_offset - 3); in mn10300_elf_relax_section()
3966 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
3988 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
3989 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
3992 bfd_put_8 (abfd, 0xfd, contents + irel->r_offset - 3); in mn10300_elf_relax_section()
3993 bfd_put_8 (abfd, code, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4037 code = bfd_get_8 (abfd, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4043 code = bfd_get_8 (abfd, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
4073 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4074 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4077 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4078 bfd_put_8 (abfd, code, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
4115 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4116 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4128 bfd_put_8 (abfd, code, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4174 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4175 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4178 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4179 bfd_put_8 (abfd, code, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
4231 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4232 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4248 bfd_put_8 (abfd, code, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4317 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4318 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4321 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4322 bfd_put_8 (abfd, code, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
4353 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4354 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4357 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2); in mn10300_elf_relax_section()
4358 bfd_put_8 (abfd, 0xfe, contents + irel->r_offset - 1); in mn10300_elf_relax_section()
4388 && symtab_hdr->contents != (unsigned char *) isymbuf) in mn10300_elf_relax_section()
4395 symtab_hdr->contents = (unsigned char *) isymbuf; in mn10300_elf_relax_section()
4399 if (contents != NULL in mn10300_elf_relax_section()
4400 && elf_section_data (sec)->this_hdr.contents != contents) in mn10300_elf_relax_section()
4403 free (contents); in mn10300_elf_relax_section()
4407 elf_section_data (sec)->this_hdr.contents = contents; in mn10300_elf_relax_section()
4419 && symtab_hdr->contents != (unsigned char *) isymbuf) in mn10300_elf_relax_section()
4421 if (contents != NULL in mn10300_elf_relax_section()
4422 && elf_section_data (section)->this_hdr.contents != contents) in mn10300_elf_relax_section()
4423 free (contents); in mn10300_elf_relax_section()
4452 || elf_section_data (input_section)->this_hdr.contents == NULL) in mn10300_elf_get_relocated_section_contents()
4460 memcpy (data, elf_section_data (input_section)->this_hdr.contents, in mn10300_elf_get_relocated_section_contents()
4477 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10300_elf_get_relocated_section_contents()
4516 if (isymbuf != NULL && symtab_hdr->contents != (unsigned char *) isymbuf) in mn10300_elf_get_relocated_section_contents()
4527 if (isymbuf != NULL && symtab_hdr->contents != (unsigned char *) isymbuf) in mn10300_elf_get_relocated_section_contents()
5054 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER; in _bfd_mn10300_elf_size_dynamic_sections()
5159 s->contents = bfd_zalloc (dynobj, s->size); in _bfd_mn10300_elf_size_dynamic_sections()
5160 if (s->contents == NULL) in _bfd_mn10300_elf_size_dynamic_sections()
5253 memcpy (splt->contents + h->plt.offset, elf_mn10300_plt_entry, in _bfd_mn10300_elf_finish_dynamic_symbol()
5259 (splt->contents + h->plt.offset in _bfd_mn10300_elf_finish_dynamic_symbol()
5264 (splt->contents + h->plt.offset in _bfd_mn10300_elf_finish_dynamic_symbol()
5269 memcpy (splt->contents + h->plt.offset, elf_mn10300_pic_plt_entry, in _bfd_mn10300_elf_finish_dynamic_symbol()
5273 (splt->contents + h->plt.offset in _bfd_mn10300_elf_finish_dynamic_symbol()
5278 (splt->contents + h->plt.offset in _bfd_mn10300_elf_finish_dynamic_symbol()
5287 sgot->contents + got_offset); in _bfd_mn10300_elf_finish_dynamic_symbol()
5296 (bfd_byte *) ((Elf32_External_Rela *) srel->contents in _bfd_mn10300_elf_finish_dynamic_symbol()
5323 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset); in _bfd_mn10300_elf_finish_dynamic_symbol()
5324 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset + 4); in _bfd_mn10300_elf_finish_dynamic_symbol()
5328 (bfd_byte *) ((Elf32_External_Rela *) srel->contents in _bfd_mn10300_elf_finish_dynamic_symbol()
5340 rel.r_addend = bfd_get_32 (output_bfd, sgot->contents + h->got.offset); in _bfd_mn10300_elf_finish_dynamic_symbol()
5341 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset); in _bfd_mn10300_elf_finish_dynamic_symbol()
5365 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset); in _bfd_mn10300_elf_finish_dynamic_symbol()
5374 (bfd_byte *) ((Elf32_External_Rela *) srel->contents in _bfd_mn10300_elf_finish_dynamic_symbol()
5399 (bfd_byte *) ((Elf32_External_Rela *) s->contents in _bfd_mn10300_elf_finish_dynamic_symbol()
5436 dyncon = (Elf32_External_Dyn *) sdyn->contents; in _bfd_mn10300_elf_finish_dynamic_sections()
5437 dynconend = (Elf32_External_Dyn *) (sdyn->contents + sdyn->size); in _bfd_mn10300_elf_finish_dynamic_sections()
5496 memcpy (splt->contents, elf_mn10300_pic_plt_entry, in _bfd_mn10300_elf_finish_dynamic_sections()
5501 memcpy (splt->contents, elf_mn10300_plt0_entry, PLT0_ENTRY_SIZE); in _bfd_mn10300_elf_finish_dynamic_sections()
5504 splt->contents + elf_mn10300_plt0_gotid_offset (info)); in _bfd_mn10300_elf_finish_dynamic_sections()
5507 splt->contents + elf_mn10300_plt0_linker_offset (info)); in _bfd_mn10300_elf_finish_dynamic_sections()
5528 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents); in _bfd_mn10300_elf_finish_dynamic_sections()
5532 sgot->contents); in _bfd_mn10300_elf_finish_dynamic_sections()
5533 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 4); in _bfd_mn10300_elf_finish_dynamic_sections()
5534 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 8); in _bfd_mn10300_elf_finish_dynamic_sections()