Lines Matching refs:contents
1172 bfd_byte *contents, in elf_x86_64_check_tls_transition() argument
1187 if (contents == NULL) in elf_x86_64_check_tls_transition()
1189 if (elf_section_data (sec)->this_hdr.contents != NULL) in elf_x86_64_check_tls_transition()
1190 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_check_tls_transition()
1194 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in elf_x86_64_check_tls_transition()
1198 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_check_tls_transition()
1232 if (memcmp (contents + offset + 4, call, 4) != 0) in elf_x86_64_check_tls_transition()
1237 || memcmp (contents + offset - 3, leaq + 1, 3) != 0 in elf_x86_64_check_tls_transition()
1238 || memcmp (contents + offset + 4, "\x48\xb8", 2) != 0 in elf_x86_64_check_tls_transition()
1239 || memcmp (contents + offset + 14, "\x48\x01\xd8\xff\xd0", 5) in elf_x86_64_check_tls_transition()
1247 || memcmp (contents + offset - 4, leaq, 4) != 0) in elf_x86_64_check_tls_transition()
1253 || memcmp (contents + offset - 3, leaq + 1, 3) != 0) in elf_x86_64_check_tls_transition()
1274 if (memcmp (contents + offset - 3, lea, 3) != 0) in elf_x86_64_check_tls_transition()
1277 if (0xe8 != *(contents + offset + 4)) in elf_x86_64_check_tls_transition()
1281 || memcmp (contents + offset + 4, "\x48\xb8", 2) != 0 in elf_x86_64_check_tls_transition()
1282 || memcmp (contents + offset + 14, "\x48\x01\xd8\xff\xd0", 5) in elf_x86_64_check_tls_transition()
1314 val = bfd_get_8 (abfd, contents + offset - 3); in elf_x86_64_check_tls_transition()
1331 val = bfd_get_8 (abfd, contents + offset - 2); in elf_x86_64_check_tls_transition()
1335 val = bfd_get_8 (abfd, contents + offset - 1); in elf_x86_64_check_tls_transition()
1349 val = bfd_get_8 (abfd, contents + offset - 3); in elf_x86_64_check_tls_transition()
1353 if (bfd_get_8 (abfd, contents + offset - 2) != 0x8d) in elf_x86_64_check_tls_transition()
1356 val = bfd_get_8 (abfd, contents + offset - 1); in elf_x86_64_check_tls_transition()
1367 return memcmp (contents + offset, call, 2) == 0; in elf_x86_64_check_tls_transition()
1382 asection *sec, bfd_byte *contents, in elf_x86_64_tls_transition() argument
1418 if (contents != NULL) in elf_x86_64_tls_transition()
1460 && ! elf_x86_64_check_tls_transition (abfd, info, sec, contents, in elf_x86_64_tls_transition()
2757 bfd_byte *contents; in elf_x86_64_convert_mov_to_lea() local
2788 if (elf_section_data (sec)->this_hdr.contents != NULL) in elf_x86_64_convert_mov_to_lea()
2789 contents = elf_section_data (sec)->this_hdr.contents; in elf_x86_64_convert_mov_to_lea()
2792 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in elf_x86_64_convert_mov_to_lea()
2819 contents + irel->r_offset - 2) == 0x8b) in elf_x86_64_convert_mov_to_lea()
2822 contents + irel->r_offset - 2); in elf_x86_64_convert_mov_to_lea()
2850 contents + irel->r_offset - 2) == 0x8b) in elf_x86_64_convert_mov_to_lea()
2853 contents + irel->r_offset - 2); in elf_x86_64_convert_mov_to_lea()
2862 if (contents != NULL in elf_x86_64_convert_mov_to_lea()
2863 && elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_convert_mov_to_lea()
2866 free (contents); in elf_x86_64_convert_mov_to_lea()
2870 elf_section_data (sec)->this_hdr.contents = contents; in elf_x86_64_convert_mov_to_lea()
2885 if (contents != NULL in elf_x86_64_convert_mov_to_lea()
2886 && elf_section_data (sec)->this_hdr.contents != contents) in elf_x86_64_convert_mov_to_lea()
2887 free (contents); in elf_x86_64_convert_mov_to_lea()
2925 s->contents = (unsigned char *) htab->dynamic_interpreter; in elf_x86_64_size_dynamic_sections()
3179 s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size); in elf_x86_64_size_dynamic_sections()
3180 if (s->contents == NULL) in elf_x86_64_size_dynamic_sections()
3185 && htab->plt_eh_frame->contents != NULL) in elf_x86_64_size_dynamic_sections()
3190 memcpy (htab->plt_eh_frame->contents, in elf_x86_64_size_dynamic_sections()
3193 htab->plt_eh_frame->contents + PLT_FDE_LEN_OFFSET); in elf_x86_64_size_dynamic_sections()
3356 is_32bit_relative_branch (bfd_byte *contents, bfd_vma offset) in is_32bit_relative_branch() argument
3363 && (contents [offset - 1] == 0xe8 in is_32bit_relative_branch()
3364 || contents [offset - 1] == 0xe9)) in is_32bit_relative_branch()
3366 && contents [offset - 2] == 0x0f in is_32bit_relative_branch()
3367 && (contents [offset - 1] & 0xf0) == 0x80)); in is_32bit_relative_branch()
3377 bfd_byte *contents, in elf_x86_64_relocate_section() argument
3484 rel, 1, relend, howto, 0, contents); in elf_x86_64_relocate_section()
3496 memset (contents + rel->r_offset + 4, 0, 4); in elf_x86_64_relocate_section()
3503 memset (contents + rel->r_offset + 4, 0, 4); in elf_x86_64_relocate_section()
3686 base_got->contents + off); in elf_x86_64_relocate_section()
3761 base_got->contents + off); in elf_x86_64_relocate_section()
3785 base_got->contents + off); in elf_x86_64_relocate_section()
3943 && is_32bit_relative_branch (contents, rel->r_offset)); in elf_x86_64_relocate_section()
4146 if (sreloc == NULL || sreloc->contents == NULL) in elf_x86_64_relocate_section()
4175 input_section, contents, in elf_x86_64_relocate_section()
4212 && contents[roff + 5] == (bfd_byte) '\xb8') in elf_x86_64_relocate_section()
4214 memcpy (contents + roff - 3, in elf_x86_64_relocate_section()
4220 memcpy (contents + roff - 4, in elf_x86_64_relocate_section()
4224 memcpy (contents + roff - 3, in elf_x86_64_relocate_section()
4229 contents + roff + 8 + largepic); in elf_x86_64_relocate_section()
4245 type = bfd_get_8 (input_bfd, contents + roff - 3); in elf_x86_64_relocate_section()
4246 val = bfd_get_8 (input_bfd, contents + roff - 1); in elf_x86_64_relocate_section()
4248 contents + roff - 3); in elf_x86_64_relocate_section()
4249 bfd_put_8 (output_bfd, 0xc7, contents + roff - 2); in elf_x86_64_relocate_section()
4251 contents + roff - 1); in elf_x86_64_relocate_section()
4254 contents + roff); in elf_x86_64_relocate_section()
4264 bfd_put_8 (output_bfd, 0x66, contents + roff); in elf_x86_64_relocate_section()
4265 bfd_put_8 (output_bfd, 0x90, contents + roff + 1); in elf_x86_64_relocate_section()
4289 val = bfd_get_8 (input_bfd, contents + roff - 3); in elf_x86_64_relocate_section()
4292 type = bfd_get_8 (input_bfd, contents + roff - 2); in elf_x86_64_relocate_section()
4293 reg = bfd_get_8 (input_bfd, contents + roff - 1); in elf_x86_64_relocate_section()
4300 contents + roff - 3); in elf_x86_64_relocate_section()
4303 contents + roff - 3); in elf_x86_64_relocate_section()
4305 contents + roff - 2); in elf_x86_64_relocate_section()
4307 contents + roff - 1); in elf_x86_64_relocate_section()
4315 contents + roff - 3); in elf_x86_64_relocate_section()
4318 contents + roff - 3); in elf_x86_64_relocate_section()
4320 contents + roff - 2); in elf_x86_64_relocate_section()
4322 contents + roff - 1); in elf_x86_64_relocate_section()
4329 contents + roff - 3); in elf_x86_64_relocate_section()
4332 contents + roff - 3); in elf_x86_64_relocate_section()
4334 contents + roff - 2); in elf_x86_64_relocate_section()
4336 contents + roff - 1); in elf_x86_64_relocate_section()
4340 contents + roff); in elf_x86_64_relocate_section()
4406 bfd_put_64 (output_bfd, 0, htab->elf.sgot->contents + off); in elf_x86_64_relocate_section()
4422 htab->elf.sgot->contents + off + GOT_ENTRY_SIZE); in elf_x86_64_relocate_section()
4427 htab->elf.sgot->contents + off + GOT_ENTRY_SIZE); in elf_x86_64_relocate_section()
4487 && contents[roff + 5] == (bfd_byte) '\xb8') in elf_x86_64_relocate_section()
4489 memcpy (contents + roff - 3, in elf_x86_64_relocate_section()
4495 memcpy (contents + roff - 4, in elf_x86_64_relocate_section()
4499 memcpy (contents + roff - 3, in elf_x86_64_relocate_section()
4511 contents + roff + 8 + largepic); in elf_x86_64_relocate_section()
4529 bfd_put_8 (output_bfd, 0x8b, contents + roff - 2); in elf_x86_64_relocate_section()
4538 contents + roff); in elf_x86_64_relocate_section()
4550 bfd_put_8 (output_bfd, 0x66, contents + roff); in elf_x86_64_relocate_section()
4551 bfd_put_8 (output_bfd, 0x90, contents + roff + 1); in elf_x86_64_relocate_section()
4561 input_section, contents, in elf_x86_64_relocate_section()
4586 && contents[rel->r_offset + 5] == (bfd_byte) '\xb8') in elf_x86_64_relocate_section()
4587 memcpy (contents + rel->r_offset - 3, in elf_x86_64_relocate_section()
4591 memcpy (contents + rel->r_offset - 3, in elf_x86_64_relocate_section()
4594 memcpy (contents + rel->r_offset - 3, in elf_x86_64_relocate_section()
4618 htab->elf.sgot->contents + off); in elf_x86_64_relocate_section()
4620 htab->elf.sgot->contents + off + GOT_ENTRY_SIZE); in elf_x86_64_relocate_section()
4675 contents, rel->r_offset, in elf_x86_64_relocate_section()
4832 memcpy (plt->contents + h->plt.offset, in elf_x86_64_finish_dynamic_symbol()
4835 memcpy (htab->plt_bnd->contents + eh->plt_bnd.offset, in elf_x86_64_finish_dynamic_symbol()
4844 memcpy (plt->contents + h->plt.offset, abed->plt_entry, in elf_x86_64_finish_dynamic_symbol()
4863 resolved_plt->contents + plt_offset + plt_got_offset); in elf_x86_64_finish_dynamic_symbol()
4870 gotplt->contents + got_offset); in elf_x86_64_finish_dynamic_symbol()
4903 plt->contents + h->plt.offset + abed->plt_reloc_offset); in elf_x86_64_finish_dynamic_symbol()
4906 plt->contents + h->plt.offset + plt_plt_offset); in elf_x86_64_finish_dynamic_symbol()
4910 loc = relplt->contents + plt_index * bed->s->sizeof_rela; in elf_x86_64_finish_dynamic_symbol()
4971 htab->elf.sgot->contents + h->got.offset); in elf_x86_64_finish_dynamic_symbol()
4991 htab->elf.sgot->contents + h->got.offset); in elf_x86_64_finish_dynamic_symbol()
5094 dyncon = sdyn->contents; in elf_x86_64_finish_dynamic_sections()
5095 dynconend = sdyn->contents + sdyn->size; in elf_x86_64_finish_dynamic_sections()
5157 memcpy (htab->elf.splt->contents, in elf_x86_64_finish_dynamic_sections()
5168 htab->elf.splt->contents + abed->plt0_got1_offset); in elf_x86_64_finish_dynamic_sections()
5178 htab->elf.splt->contents + abed->plt0_got2_offset); in elf_x86_64_finish_dynamic_sections()
5186 htab->elf.sgot->contents + htab->tlsdesc_got); in elf_x86_64_finish_dynamic_sections()
5188 memcpy (htab->elf.splt->contents + htab->tlsdesc_plt, in elf_x86_64_finish_dynamic_sections()
5201 htab->elf.splt->contents in elf_x86_64_finish_dynamic_sections()
5214 htab->elf.splt->contents in elf_x86_64_finish_dynamic_sections()
5239 bfd_put_64 (output_bfd, (bfd_vma) 0, htab->elf.sgotplt->contents); in elf_x86_64_finish_dynamic_sections()
5243 htab->elf.sgotplt->contents); in elf_x86_64_finish_dynamic_sections()
5245 bfd_put_64 (output_bfd, (bfd_vma) 0, htab->elf.sgotplt->contents + GOT_ENTRY_SIZE); in elf_x86_64_finish_dynamic_sections()
5246 bfd_put_64 (output_bfd, (bfd_vma) 0, htab->elf.sgotplt->contents + GOT_ENTRY_SIZE*2); in elf_x86_64_finish_dynamic_sections()
5255 && htab->plt_eh_frame->contents != NULL) in elf_x86_64_finish_dynamic_sections()
5268 htab->plt_eh_frame->contents in elf_x86_64_finish_dynamic_sections()
5275 htab->plt_eh_frame->contents)) in elf_x86_64_finish_dynamic_sections()