Lines Matching defs:contents

896 			   bfd_byte *	 contents,
899 bfd_byte *op = contents + offset;
1072 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
1376 if (symtab_hdr->contents != (unsigned char *) isymbuf)
1410 bfd_byte *contents,
1425 bfd_byte * hit_data = contents + offset;
1578 (bfd_byte *) (((Elf32_External_Rela *) sreloc->contents)
1806 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + htab->tls_ldm_got.offset);
1807 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + htab->tls_ldm_got.offset+4);
1811 (bfd_byte *) ((Elf32_External_Rela *) srelgot->contents
1844 if (sgot->contents != NULL
1857 sgot->contents + off);
1868 bfd_put_32 (output_bfd, value, sgot->contents + (off & ~ 1));
1871 bfd_put_32 (output_bfd, value, sgot->contents + off);
1892 srelgot->contents)
1909 srelgot->contents)
1972 bfd_byte *contents,
2032 contents, rel->r_offset);
2105 rel, 1, relend, howto, 0, contents);
2112 contents, rel->r_offset,
2283 contents CONTENTS, store the information in the hash table. */
2289 unsigned char *contents)
2302 byte1 = bfd_get_8 (abfd, contents + addr);
2303 byte2 = bfd_get_8 (abfd, contents + addr + 1);
2309 byte1 = bfd_get_8 (abfd, contents + addr);
2310 byte2 = bfd_get_8 (abfd, contents + addr + 1);
2358 int temp = bfd_get_8 (abfd, contents + addr + 2);
2365 int temp = bfd_get_16 (abfd, contents + addr + 2);
2390 bfd_byte *contents;
2401 contents = elf_section_data (sec)->this_hdr.contents;
2440 memmove (contents + addr, contents + addr + count,
2460 bfd_put_8 (abfd, (bfd_vma) NOP_OPCODE, contents + toaddr - count + i);
2480 isym = (Elf_Internal_Sym *) symtab_hdr->contents;
2643 bfd_byte *contents = NULL;
2675 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
2702 /* Get cached copy of section contents if it exists. */
2703 if (elf_section_data (section)->this_hdr.contents != NULL)
2704 contents = elf_section_data (section)->this_hdr.contents;
2709 &contents))
2713 contents = NULL;
2806 contents + irel->r_offset - 1);
2824 /* Now look at the actual contents to get the stack size,
2901 isym->st_value, contents);
2915 contents);
2924 /* Cache or free any memory we allocated for the contents. */
2925 if (contents != NULL
2926 && elf_section_data (section)->this_hdr.contents != contents)
2929 free (contents);
2932 /* Cache the section contents for elf_link_input_bfd. */
2933 elf_section_data (section)->this_hdr.contents = contents;
2936 contents = NULL;
2941 && symtab_hdr->contents != (unsigned char *) isymbuf)
2948 symtab_hdr->contents = (unsigned char *) isymbuf;
3018 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
3054 /* Get cached copy of section contents if it exists. */
3055 if (elf_section_data (section)->this_hdr.contents != NULL)
3056 contents = elf_section_data (section)->this_hdr.contents;
3061 &contents))
3123 elf_section_data (section)->this_hdr.contents = contents;
3124 symtab_hdr->contents = (unsigned char *) isymbuf;
3178 elf_section_data (section)->this_hdr.contents = contents;
3179 symtab_hdr->contents = (unsigned char *) isymbuf;
3235 /* Cache or free any memory we allocated for the contents. */
3236 if (contents != NULL
3237 && elf_section_data (section)->this_hdr.contents != contents)
3240 free (contents);
3242 /* Cache the section contents for elf_link_input_bfd. */
3243 elf_section_data (section)->this_hdr.contents = contents;
3245 contents = NULL;
3250 && symtab_hdr->contents != (unsigned char *) isymbuf)
3256 symtab_hdr->contents = (unsigned char *) isymbuf;
3263 contents = NULL;
3329 /* Get the section contents if we haven't done so already. */
3330 if (contents == NULL)
3333 if (elf_section_data (sec)->this_hdr.contents != NULL)
3334 contents = elf_section_data (sec)->this_hdr.contents;
3338 if (!bfd_malloc_and_get_section (abfd, sec, &contents))
3346 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
3451 contents, the section relocs, and the BFD symbol table. We
3490 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3495 /* Note that we've changed the relocs, section contents,
3498 elf_section_data (sec)->this_hdr.contents = contents;
3499 symtab_hdr->contents = (unsigned char *) isymbuf;
3502 bfd_put_8 (abfd, 0xfc, contents + irel->r_offset - 1);
3503 bfd_put_8 (abfd, 0xff, contents + irel->r_offset);
3526 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3532 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 4);
3534 contents + irel->r_offset + 5);
3559 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3564 /* Note that we've changed the relocs, section contents, etc. */
3566 elf_section_data (sec)->this_hdr.contents = contents;
3567 symtab_hdr->contents = (unsigned char *) isymbuf;
3571 bfd_put_8 (abfd, 0xcc, contents + irel->r_offset - 1);
3573 bfd_put_8 (abfd, 0xcd, contents + irel->r_offset - 1);
3575 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
3608 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3613 /* Note that we've changed the relocs, section contents,
3616 elf_section_data (sec)->this_hdr.contents = contents;
3617 symtab_hdr->contents = (unsigned char *) isymbuf;
3620 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 1);
3621 bfd_put_8 (abfd, 0xff, contents + irel->r_offset);
3642 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3648 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 2);
3650 contents + irel->r_offset + 3);
3667 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3672 /* Note that we've changed the relocs, section contents, etc. */
3674 elf_section_data (sec)->this_hdr.contents = contents;
3675 symtab_hdr->contents = (unsigned char *) isymbuf;
3678 bfd_put_8 (abfd, 0xca, contents + irel->r_offset - 1);
3718 code = bfd_get_8 (abfd, contents + irel->r_offset + 1);
3743 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3757 /* Note that we've changed the relocs, section contents, etc. */
3759 elf_section_data (sec)->this_hdr.contents = contents;
3760 symtab_hdr->contents = (unsigned char *) isymbuf;
3808 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
3844 code = bfd_get_8 (abfd, contents + irel->r_offset - 3);
3849 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
3865 /* Note that we've changed the relocation contents,
3868 elf_section_data (sec)->this_hdr.contents = contents;
3869 symtab_hdr->contents = (unsigned char *) isymbuf;
3872 bfd_put_8 (abfd, 0xfb, contents + irel->r_offset - 3);
3873 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
3943 code = bfd_get_8 (abfd, contents + irel->r_offset - 3);
3948 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
3967 /* Note that we've changed the relocation contents,
3970 elf_section_data (sec)->this_hdr.contents = contents;
3971 symtab_hdr->contents = (unsigned char *) isymbuf;
3974 bfd_put_8 (abfd, 0xfd, contents + irel->r_offset - 3);
3975 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
4019 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
4025 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
4053 /* Note that we've changed the relocation contents, etc. */
4055 elf_section_data (sec)->this_hdr.contents = contents;
4056 symtab_hdr->contents = (unsigned char *) isymbuf;
4059 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4060 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
4095 /* Note that we've changed the relocation contents, etc. */
4097 elf_section_data (sec)->this_hdr.contents = contents;
4098 symtab_hdr->contents = (unsigned char *) isymbuf;
4110 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
4154 /* Note that we've changed the relocation contents, etc. */
4156 elf_section_data (sec)->this_hdr.contents = contents;
4157 symtab_hdr->contents = (unsigned char *) isymbuf;
4160 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4161 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
4211 /* Note that we've changed the relocation contents, etc. */
4213 elf_section_data (sec)->this_hdr.contents = contents;
4214 symtab_hdr->contents = (unsigned char *) isymbuf;
4230 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
4297 /* Note that we've changed the relocation contents, etc. */
4299 elf_section_data (sec)->this_hdr.contents = contents;
4300 symtab_hdr->contents = (unsigned char *) isymbuf;
4303 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4304 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
4333 /* Note that we've changed the relocation contents, etc. */
4335 elf_section_data (sec)->this_hdr.contents = contents;
4336 symtab_hdr->contents = (unsigned char *) isymbuf;
4339 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4340 bfd_put_8 (abfd, 0xfe, contents + irel->r_offset - 1);
4370 && symtab_hdr->contents != (unsigned char *) isymbuf)
4377 symtab_hdr->contents = (unsigned char *) isymbuf;
4381 if (contents != NULL
4382 && elf_section_data (sec)->this_hdr.contents != contents)
4385 free (contents);
4388 /* Cache the section contents for elf_link_input_bfd. */
4389 elf_section_data (sec)->this_hdr.contents = contents;
4399 if (symtab_hdr->contents != (unsigned char *) isymbuf)
4401 if (elf_section_data (section)->this_hdr.contents != contents)
4402 free (contents);
4428 particular set of section contents, specially. */
4430 || elf_section_data (input_section)->this_hdr.contents == NULL)
4445 memcpy (data, elf_section_data (input_section)->this_hdr.contents,
4462 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
4500 if (symtab_hdr->contents != (unsigned char *) isymbuf)
4510 if (symtab_hdr->contents != (unsigned char *) isymbuf)
4896 will fill in the contents of the procedure linkage table later,
5033 /* Set the contents of the .interp section to the interpreter. */
5039 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER;
5118 /* Allocate memory for the section contents. We use bfd_zalloc
5120 section's contents are written out. This should not happen,
5123 s->contents = bfd_zalloc (dynobj, s->size);
5124 if (s->contents == NULL)
5131 /* Finish up dynamic symbol handling. We set the contents of various
5179 memcpy (splt->contents + h->plt.offset, elf_mn10300_plt_entry,
5185 (splt->contents + h->plt.offset
5190 (splt->contents + h->plt.offset
5195 memcpy (splt->contents + h->plt.offset, elf_mn10300_pic_plt_entry,
5199 (splt->contents + h->plt.offset
5204 (splt->contents + h->plt.offset
5213 sgot->contents + got_offset);
5222 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
5249 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
5250 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset + 4);
5254 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
5266 rel.r_addend = bfd_get_32 (output_bfd, sgot->contents + h->got.offset);
5267 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
5291 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
5300 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
5325 (bfd_byte *) ((Elf32_External_Rela *) s->contents
5362 dyncon = (Elf32_External_Dyn *) sdyn->contents;
5363 dynconend = (Elf32_External_Dyn *) (sdyn->contents + sdyn->size);
5402 memcpy (splt->contents, elf_mn10300_pic_plt_entry,
5407 memcpy (splt->contents, elf_mn10300_plt0_entry, PLT0_ENTRY_SIZE);
5410 splt->contents + elf_mn10300_plt0_gotid_offset (info));
5413 splt->contents + elf_mn10300_plt0_linker_offset (info));
5434 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents);
5438 sgot->contents);
5439 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 4);
5440 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 8);