Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 441) sorted by relevance

12345678910>>...18

/toolchain/binutils/binutils-2.25/bfd/
Delf32-msp430.c680 bfd_byte * contents, in msp430_final_link_relocate() argument
765 contents += rel->r_offset; in msp430_final_link_relocate()
768 srel += bfd_get_16 (input_bfd, contents); in msp430_final_link_relocate()
771 bfd_put_16 (input_bfd, srel & 0xffff, contents); in msp430_final_link_relocate()
775 contents += rel->r_offset; in msp430_final_link_relocate()
778 srel += bfd_get_16 (input_bfd, contents) & 0x3ff; in msp430_final_link_relocate()
809 x = bfd_get_16 (input_bfd, contents); in msp430_final_link_relocate()
811 bfd_put_16 (input_bfd, x, contents); in msp430_final_link_relocate()
816 contents += rel->r_offset; in msp430_final_link_relocate()
821 addend = (bfd_get_16 (input_bfd, contents) & 0xf) << 16; in msp430_final_link_relocate()
[all …]
Delf-m10200.c234 bfd_byte *contents, in mn10200_elf_final_link_relocate() argument
243 bfd_byte *hit_data = contents + offset; in mn10200_elf_final_link_relocate()
334 bfd_byte *contents, in mn10200_elf_relocate_section() argument
384 rel, 1, relend, howto, 0, contents); in mn10200_elf_relocate_section()
391 contents, rel->r_offset, in mn10200_elf_relocate_section()
464 bfd_byte *contents; in mn10200_elf_relax_delete_bytes() local
475 contents = elf_section_data (sec)->this_hdr.contents; in mn10200_elf_relax_delete_bytes()
483 memmove (contents + addr, contents + addr + count, in mn10200_elf_relax_delete_bytes()
498 isym = (Elf_Internal_Sym *) symtab_hdr->contents; in mn10200_elf_relax_delete_bytes()
566 bfd_byte *contents = NULL; in mn10200_elf_relax_section() local
[all …]
Delf32-h8300.c340 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()
[all …]
Delf32-avr.c917 bfd_byte * contents, in avr_final_link_relocate() argument
937 contents += rel->r_offset; in avr_final_link_relocate()
949 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
951 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
955 contents += rel->r_offset; in avr_final_link_relocate()
989 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
991 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
995 contents += rel->r_offset; in avr_final_link_relocate()
997 x = bfd_get_16 (input_bfd, contents); in avr_final_link_relocate()
999 bfd_put_16 (input_bfd, x, contents); in avr_final_link_relocate()
[all …]
Delfxx-aarch64.c163 bfd_vma contents; in _bfd_aarch64_elf_put_addend() local
170 contents = bfd_get_16 (abfd, address); in _bfd_aarch64_elf_put_addend()
175 contents = bfd_getl32 (address); in _bfd_aarch64_elf_put_addend()
178 contents = bfd_get_32 (abfd, address); in _bfd_aarch64_elf_put_addend()
181 contents = bfd_get_64 (abfd, address); in _bfd_aarch64_elf_put_addend()
210 contents = reencode_branch_ofs_26 (contents, addend); in _bfd_aarch64_elf_put_addend()
214 contents = reencode_cond_branch_ofs_19 (contents, addend); in _bfd_aarch64_elf_put_addend()
218 contents = reencode_tst_branch_ofs_14 (contents, addend); in _bfd_aarch64_elf_put_addend()
225 contents = reencode_ld_lit_ofs_19 (contents, addend); in _bfd_aarch64_elf_put_addend()
238 contents = _bfd_aarch64_reencode_adr_imm (contents, addend); in _bfd_aarch64_elf_put_addend()
[all …]
Delf32-crx.c435 asection *input_section, bfd_byte *contents, in crx_elf_final_link_relocate() argument
442 bfd_byte *hit_data = contents + offset; in crx_elf_final_link_relocate()
592 bfd_byte *contents; in elf32_crx_relax_delete_bytes() local
604 contents = elf_section_data (sec)->this_hdr.contents; in elf32_crx_relax_delete_bytes()
612 memmove (contents + addr, contents + addr + count, in elf32_crx_relax_delete_bytes()
627 isym = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_crx_relax_delete_bytes()
649 rsym = (Elf_Internal_Sym *) symtab_hdr->contents + r_symndx; in elf32_crx_relax_delete_bytes()
736 || elf_section_data (input_section)->this_hdr.contents == NULL) in elf32_crx_get_relocated_section_contents()
744 memcpy (data, elf_section_data (input_section)->this_hdr.contents, in elf32_crx_get_relocated_section_contents()
763 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_crx_get_relocated_section_contents()
[all …]
Delf32-m68hc11.c419 loc = stub_sec->contents + stub_entry->stub_offset; in m68hc11_elf_build_one_stub()
562 m68hc11_relax_group (bfd *abfd, asection *sec, bfd_byte *contents, in m68hc11_relax_group() argument
576 code = bfd_get_8 (abfd, contents + offset); in m68hc11_relax_group()
581 code = bfd_get_8 (abfd, contents + offset); in m68hc11_relax_group()
601 code = bfd_get_8 (abfd, contents + offset); in m68hc11_relax_group()
606 code = bfd_get_8 (abfd, contents + offset); in m68hc11_relax_group()
642 new_value = (unsigned) bfd_get_8 (abfd, contents + offset + 1); in m68hc11_relax_group()
646 bfd_put_8 (abfd, code, contents + offset); in m68hc11_relax_group()
647 bfd_put_8 (abfd, new_value, contents + offset + 1); in m68hc11_relax_group()
681 bfd_byte *contents = NULL; in m68hc11_elf_relax_section() local
[all …]
Dcoff-tic80.c482 bfd_byte *contents, in coff_tic80_relocate_section() argument
591 contents, addr, val, addend); in coff_tic80_relocate_section()
602 contents + 2, addr, val, addend); in coff_tic80_relocate_section()
611 hold = contents[addr + 4]; in coff_tic80_relocate_section()
612 contents[addr + 4] &=~ 0x20; in coff_tic80_relocate_section()
613 contents[addr + 4] |= (contents[addr] >> 1) & 0x20; in coff_tic80_relocate_section()
615 contents + 2, addr, in coff_tic80_relocate_section()
617 contents[addr] &=~ 0x40; in coff_tic80_relocate_section()
618 contents[addr] |= (contents[addr + 4] << 1) & 0x40; in coff_tic80_relocate_section()
619 contents[addr + 4] &=~ 0x20; in coff_tic80_relocate_section()
[all …]
Delf32-cr16.c853 bfd_byte *contents, in cr16_elf_final_link_relocate() argument
864 bfd_byte *hit_data = contents + offset; in cr16_elf_final_link_relocate()
1071 bfd_put_32 (output_bfd, Rvalue, sgot->contents + off); in cr16_elf_final_link_relocate()
1080 bfd_put_32 (output_bfd,Rvalue, sgot->contents + off); in cr16_elf_final_link_relocate()
1122 bfd_put_32 (output_bfd, Rvalue, sgot->contents + off); in cr16_elf_final_link_relocate()
1132 bfd_put_32 (output_bfd,Rvalue, sgot->contents + off); in cr16_elf_final_link_relocate()
1263 bfd_byte *contents; in elf32_cr16_relax_delete_bytes() local
1275 contents = elf_section_data (sec)->this_hdr.contents; in elf32_cr16_relax_delete_bytes()
1283 memmove (contents + addr, contents + addr + count, in elf32_cr16_relax_delete_bytes()
1295 isym = (Elf_Internal_Sym *) symtab_hdr->contents; in elf32_cr16_relax_delete_bytes()
[all …]
Delf32-ip2k.c33 bfd_byte * contents; member
346 bfd_byte *contents) in ip2k_is_switch_table_128() argument
355 ip2k_get_mem (abfd, contents + addr, 4, code); in ip2k_is_switch_table_128()
368 ip2k_get_mem (abfd, contents + addr - 4, 4, code); in ip2k_is_switch_table_128()
426 bfd_byte *contents) in ip2k_is_switch_table_256() argument
435 ip2k_get_mem (abfd, contents + addr, 4, code); in ip2k_is_switch_table_256()
447 ip2k_get_mem (abfd, contents + addr - 16, 16, code); in ip2k_is_switch_table_256()
483 bfd_byte *contents) in ip2k_nominal_page_bits() argument
503 ip2k_get_mem (abfd, contents + addr, 2, code); in ip2k_nominal_page_bits()
508 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits()
[all …]
Delf32-epiphany.c35 bfd_byte * contents; member
185 bfd_byte *contents = NULL; in epiphany_elf_relax_section() local
241 if (contents == NULL) in epiphany_elf_relax_section()
244 if (elf_section_data (sec)->this_hdr.contents != NULL) in epiphany_elf_relax_section()
245 contents = elf_section_data (sec)->this_hdr.contents; in epiphany_elf_relax_section()
249 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in epiphany_elf_relax_section()
257 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in epiphany_elf_relax_section()
269 misc.contents = contents; in epiphany_elf_relax_section()
324 && symtab_hdr->contents != (unsigned char *) isymbuf) in epiphany_elf_relax_section()
329 symtab_hdr->contents = (unsigned char *) isymbuf; in epiphany_elf_relax_section()
[all …]
Delf-m10300.c887 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()
[all …]
Delf32-sh.c129 asection *input_section, bfd_byte *contents, in sh_elf_reloc_loop() argument
162 if (elf_section_data (symbol_section)->this_hdr.contents != NULL) in sh_elf_reloc_loop()
163 contents = elf_section_data (symbol_section)->this_hdr.contents; in sh_elf_reloc_loop()
167 &contents)) in sh_elf_reloc_loop()
169 if (contents != NULL) in sh_elf_reloc_loop()
170 free (contents); in sh_elf_reloc_loop()
176 start_ptr = contents + start; in sh_elf_reloc_loop()
177 for (cum_diff = -6, ptr = contents + end; cum_diff < 0 && ptr > start_ptr;) in sh_elf_reloc_loop()
192 end = (ptr + cum_diff * 2) - contents; in sh_elf_reloc_loop()
198 while (start0 && IS_PPI (contents + start0)) in sh_elf_reloc_loop()
[all …]
Delf32-i386.c1099 bfd_byte *contents, in elf_i386_check_tls_transition() argument
1112 if (contents == NULL) in elf_i386_check_tls_transition()
1114 if (elf_section_data (sec)->this_hdr.contents != NULL) in elf_i386_check_tls_transition()
1115 contents = elf_section_data (sec)->this_hdr.contents; in elf_i386_check_tls_transition()
1119 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in elf_i386_check_tls_transition()
1123 elf_section_data (sec)->this_hdr.contents = contents; in elf_i386_check_tls_transition()
1135 type = bfd_get_8 (abfd, contents + offset - 2); in elf_i386_check_tls_transition()
1146 val = bfd_get_8 (abfd, contents + offset - 1); in elf_i386_check_tls_transition()
1153 if (bfd_get_8 (abfd, contents + offset - 3) != 0x8d) in elf_i386_check_tls_transition()
1165 if (bfd_get_8 (abfd, contents + offset + 9) != 0x90) in elf_i386_check_tls_transition()
[all …]
Delf32-microblaze.c858 (sreloc->contents + reloc_index * sizeof (Elf32_External_Rela))); in microblaze_elf_output_dynamic_relocation()
900 bfd_byte *contents, in microblaze_elf_relocate_section() argument
997 contents + offset); in microblaze_elf_relocate_section()
1071 contents, offset, in microblaze_elf_relocate_section()
1116 contents, offset, in microblaze_elf_relocate_section()
1145 contents + offset + endian); in microblaze_elf_relocate_section()
1147 contents + offset + endian + INST_WORD_SIZE); in microblaze_elf_relocate_section()
1164 contents + offset + endian); in microblaze_elf_relocate_section()
1166 contents + offset + endian + INST_WORD_SIZE); in microblaze_elf_relocate_section()
1175 contents + offset + endian); in microblaze_elf_relocate_section()
[all …]
Delf64-x86-64.c1172 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()
[all …]
Dcoff-sh.c712 bfd_byte *contents = NULL; in sh_relax_section() local
754 if (contents == NULL) in sh_relax_section()
756 if (coff_section_data (abfd, sec)->contents != NULL) in sh_relax_section()
757 contents = coff_section_data (abfd, sec)->contents; in sh_relax_section()
760 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in sh_relax_section()
778 insn = bfd_get_16 (abfd, contents + laddr); in sh_relax_section()
873 symval += bfd_get_32 (abfd, contents + paddr - sec->vma); in sh_relax_section()
901 coff_section_data (abfd, sec)->contents = contents; in sh_relax_section()
919 contents + irel->r_vaddr - sec->vma); in sh_relax_section()
927 contents + irel->r_vaddr - sec->vma); in sh_relax_section()
[all …]
Delf32-xtensa.c1637 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER; in elf_xtensa_size_dynamic_sections()
1773 s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size); in elf_xtensa_size_dynamic_sections()
1774 if (s->contents == NULL) in elf_xtensa_size_dynamic_sections()
1793 loc = (srelgot->contents in elf_xtensa_size_dynamic_sections()
1917 bfd_byte *contents, in elf_xtensa_do_reloc() argument
1960 opcode = get_expanded_call_opcode (contents + address, in elf_xtensa_do_reloc()
1979 elf_xtensa_do_asm_simplify (contents, address, input_size, in elf_xtensa_do_reloc()
1994 x = bfd_get_32 (abfd, contents + address); in elf_xtensa_do_reloc()
1996 bfd_put_32 (abfd, x, contents + address); in elf_xtensa_do_reloc()
2001 bfd_put_32 (abfd, relocation - self_address, contents + address); in elf_xtensa_do_reloc()
[all …]
Delf32-m32c.c345 bfd_byte * contents, in m32c_elf_relocate_section() argument
443 rel, 1, relend, howto, 0, contents); in m32c_elf_relocate_section()
489 bfd_put_32 (input_bfd, x, splt->contents + *plt_offset); in m32c_elf_relocate_section()
530 printf (" %02x", contents[rel->r_offset+i]); in m32c_elf_relocate_section()
535 contents, rel->r_offset, relocation, in m32c_elf_relocate_section()
706 bfd_byte *contents = splt->contents; in m32c_elf_finish_dynamic_sections() local
710 unsigned int x = bfd_get_32 (dynobj, contents + i); in m32c_elf_finish_dynamic_sections()
735 splt->contents = (bfd_byte *) bfd_zalloc (dynobj, splt->size); in m32c_elf_always_size_sections()
736 if (splt->contents == NULL) in m32c_elf_always_size_sections()
1126 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents; in m32c_elf_relax_plt_section()
[all …]
Delf32-fr30.c389 bfd_byte *contents, in fr30_final_link_relocate() argument
400 contents += rel->r_offset; in fr30_final_link_relocate()
406 x = bfd_get_32 (input_bfd, contents); in fr30_final_link_relocate()
408 bfd_put_32 (input_bfd, x, contents); in fr30_final_link_relocate()
412 contents += rel->r_offset + 2; in fr30_final_link_relocate()
414 bfd_put_32 (input_bfd, relocation, contents); in fr30_final_link_relocate()
418 contents += rel->r_offset + 1; in fr30_final_link_relocate()
431 bfd_put_8 (input_bfd, srel >> 1, contents); in fr30_final_link_relocate()
435 contents += rel->r_offset; in fr30_final_link_relocate()
448 x = bfd_get_16 (input_bfd, contents); in fr30_final_link_relocate()
[all …]
Delf32-nds32.c2520 Elf_Internal_Rela *rello, bfd_byte *contents, in nds32_elf_relocate_hi20() argument
2526 insn = bfd_getb32 (contents + relhi->r_offset); in nds32_elf_relocate_hi20()
2528 addlo = bfd_getb32 (contents + rello->r_offset); in nds32_elf_relocate_hi20()
2534 bfd_putb32 (insn, contents + relhi->r_offset); in nds32_elf_relocate_hi20()
3983 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER; in nds32_elf_size_dynamic_sections()
4109 s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size); in nds32_elf_size_dynamic_sections()
4110 if (s->contents == NULL) in nds32_elf_size_dynamic_sections()
4331 asection *input_section, bfd_byte *contents, in nds32_elf_final_link_relocate() argument
4365 contents + address); in nds32_elf_final_link_relocate()
4464 bfd_byte * contents, in nds32_elf_relocate_section() argument
[all …]
Delf32-s390.c2048 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER; in elf_s390_size_dynamic_sections()
2204 s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size); in elf_s390_size_dynamic_sections()
2205 if (s->contents == NULL) in elf_s390_size_dynamic_sections()
2312 bfd_byte *contents, in elf_s390_relocate_section() argument
2399 htab->elf.sgot->contents + in elf_s390_relocate_section()
2433 rel, 1, relend, howto, 0, contents); in elf_s390_relocate_section()
2542 base_got->contents + off); in elf_s390_relocate_section()
2552 contents + rel->r_offset - 2) in elf_s390_relocate_section()
2557 contents + rel->r_offset - 2) in elf_s390_relocate_section()
2560 contents + rel->r_offset + 3) == 0x58))) in elf_s390_relocate_section()
[all …]
Delf32-score.c1307 BFD_ASSERT (sreloc->contents != NULL); in score_elf_create_dynamic_relocation()
1391 (sreloc->contents + sreloc->reloc_count * sizeof (Elf32_External_Rel))); in score_elf_create_dynamic_relocation()
1524 score_bfd_put_32 (abfd, value, (sgot->contents + entry.gotidx)); in score_elf_create_local_got_entry()
1852 bfd_vma contents; in score_elf_add_to_rel() local
1857 contents = score_bfd_get_32 (abfd, address); in score_elf_add_to_rel()
1859 addend = contents & howto->src_mask; in score_elf_add_to_rel()
1873 (((contents & howto->src_mask) & 0x3ff0000) >> 6) | ((contents & howto->src_mask) & 0x3ff); in score_elf_add_to_rel()
1875 contents = in score_elf_add_to_rel()
1876 (contents & ~howto-> in score_elf_add_to_rel()
1878 score_bfd_put_32 (abfd, contents, address); in score_elf_add_to_rel()
[all …]
Delf32-i860.c921 bfd_byte *contents, in elf32_i860_relocate_splitn() argument
927 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_splitn()
936 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_splitn()
947 bfd_byte *contents, in elf32_i860_relocate_pc16() argument
953 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_pc16()
968 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_pc16()
979 bfd_byte *contents, in elf32_i860_relocate_pc26() argument
985 insn = bfd_get_32 (input_bfd, contents + rello->r_offset); in elf32_i860_relocate_pc26()
999 bfd_put_32 (input_bfd, insn, contents + rello->r_offset); in elf32_i860_relocate_pc26()
1008 bfd_byte *contents, in elf32_i860_relocate_highadj() argument
[all …]
Delf32-frv.c1241 sreloc->contents + reloc_offset); in _frvfdpic_add_dyn_reloc()
1272 if (rofixup->contents) in _frvfdpic_add_rofixup()
1275 bfd_put_32 (output_bfd, offset, rofixup->contents + fixup_offset); in _frvfdpic_add_rofixup()
1416 frvfdpic_got_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
1515 frvfdpic_got_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
1645 frvfdpic_got_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
1649 frvfdpic_got_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
1657 bfd_byte *plt_code = frvfdpic_plt_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
1712 bfd_byte *lzplt_code = frvfdpic_plt_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
1815 frvfdpic_got_section (info)->contents in _frvfdpic_emit_got_relocs_plt_entries()
[all …]

12345678910>>...18