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;
2701 /* Get cached copy of section contents if it exists. */
2702 if (elf_section_data (section)->this_hdr.contents != NULL)
2703 contents = elf_section_data (section)->this_hdr.contents;
2708 &contents))
2712 contents = NULL;
2805 contents + irel->r_offset - 1);
2823 /* Now look at the actual contents to get the stack size,
2900 isym->st_value, contents);
2914 contents);
2923 /* Cache or free any memory we allocated for the contents. */
2924 if (contents != NULL
2925 && elf_section_data (section)->this_hdr.contents != contents)
2928 free (contents);
2931 /* Cache the section contents for elf_link_input_bfd. */
2932 elf_section_data (section)->this_hdr.contents = contents;
2935 contents = NULL;
2940 && symtab_hdr->contents != (unsigned char *) isymbuf)
2947 symtab_hdr->contents = (unsigned char *) isymbuf;
3017 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
3051 /* Get cached copy of section contents if it exists. */
3052 if (elf_section_data (section)->this_hdr.contents != NULL)
3053 contents = elf_section_data (section)->this_hdr.contents;
3058 &contents))
3120 elf_section_data (section)->this_hdr.contents = contents;
3121 symtab_hdr->contents = (unsigned char *) isymbuf;
3175 elf_section_data (section)->this_hdr.contents = contents;
3176 symtab_hdr->contents = (unsigned char *) isymbuf;
3232 /* Cache or free any memory we allocated for the contents. */
3233 if (contents != NULL
3234 && elf_section_data (section)->this_hdr.contents != contents)
3237 free (contents);
3239 /* Cache the section contents for elf_link_input_bfd. */
3240 elf_section_data (section)->this_hdr.contents = contents;
3242 contents = NULL;
3247 && symtab_hdr->contents != (unsigned char *) isymbuf)
3253 symtab_hdr->contents = (unsigned char *) isymbuf;
3260 contents = NULL;
3326 /* Get the section contents if we haven't done so already. */
3327 if (contents == NULL)
3330 if (elf_section_data (sec)->this_hdr.contents != NULL)
3331 contents = elf_section_data (sec)->this_hdr.contents;
3335 if (!bfd_malloc_and_get_section (abfd, sec, &contents))
3343 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
3448 contents, the section relocs, and the BFD symbol table. We
3487 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3492 /* Note that we've changed the relocs, section contents,
3495 elf_section_data (sec)->this_hdr.contents = contents;
3496 symtab_hdr->contents = (unsigned char *) isymbuf;
3499 bfd_put_8 (abfd, 0xfc, contents + irel->r_offset - 1);
3500 bfd_put_8 (abfd, 0xff, contents + irel->r_offset);
3523 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3529 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 4);
3531 contents + irel->r_offset + 5);
3556 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3561 /* Note that we've changed the relocs, section contents, etc. */
3563 elf_section_data (sec)->this_hdr.contents = contents;
3564 symtab_hdr->contents = (unsigned char *) isymbuf;
3568 bfd_put_8 (abfd, 0xcc, contents + irel->r_offset - 1);
3570 bfd_put_8 (abfd, 0xcd, contents + irel->r_offset - 1);
3572 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
3605 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3610 /* Note that we've changed the relocs, section contents,
3613 elf_section_data (sec)->this_hdr.contents = contents;
3614 symtab_hdr->contents = (unsigned char *) isymbuf;
3617 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 1);
3618 bfd_put_8 (abfd, 0xff, contents + irel->r_offset);
3639 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3645 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 2);
3647 contents + irel->r_offset + 3);
3664 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3669 /* Note that we've changed the relocs, section contents, etc. */
3671 elf_section_data (sec)->this_hdr.contents = contents;
3672 symtab_hdr->contents = (unsigned char *) isymbuf;
3675 bfd_put_8 (abfd, 0xca, contents + irel->r_offset - 1);
3715 code = bfd_get_8 (abfd, contents + irel->r_offset + 1);
3740 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
3754 /* Note that we've changed the relocs, section contents, etc. */
3756 elf_section_data (sec)->this_hdr.contents = contents;
3757 symtab_hdr->contents = (unsigned char *) isymbuf;
3805 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
3841 code = bfd_get_8 (abfd, contents + irel->r_offset - 3);
3846 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
3862 /* Note that we've changed the relocation contents,
3865 elf_section_data (sec)->this_hdr.contents = contents;
3866 symtab_hdr->contents = (unsigned char *) isymbuf;
3869 bfd_put_8 (abfd, 0xfb, contents + irel->r_offset - 3);
3870 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
3940 code = bfd_get_8 (abfd, contents + irel->r_offset - 3);
3945 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
3964 /* Note that we've changed the relocation contents,
3967 elf_section_data (sec)->this_hdr.contents = contents;
3968 symtab_hdr->contents = (unsigned char *) isymbuf;
3971 bfd_put_8 (abfd, 0xfd, contents + irel->r_offset - 3);
3972 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
4016 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
4022 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
4050 /* Note that we've changed the relocation contents, etc. */
4052 elf_section_data (sec)->this_hdr.contents = contents;
4053 symtab_hdr->contents = (unsigned char *) isymbuf;
4056 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4057 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
4092 /* Note that we've changed the relocation contents, etc. */
4094 elf_section_data (sec)->this_hdr.contents = contents;
4095 symtab_hdr->contents = (unsigned char *) isymbuf;
4107 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
4151 /* Note that we've changed the relocation contents, etc. */
4153 elf_section_data (sec)->this_hdr.contents = contents;
4154 symtab_hdr->contents = (unsigned char *) isymbuf;
4157 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4158 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
4208 /* Note that we've changed the relocation contents, etc. */
4210 elf_section_data (sec)->this_hdr.contents = contents;
4211 symtab_hdr->contents = (unsigned char *) isymbuf;
4227 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
4294 /* Note that we've changed the relocation contents, etc. */
4296 elf_section_data (sec)->this_hdr.contents = contents;
4297 symtab_hdr->contents = (unsigned char *) isymbuf;
4300 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4301 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
4330 /* Note that we've changed the relocation contents, etc. */
4332 elf_section_data (sec)->this_hdr.contents = contents;
4333 symtab_hdr->contents = (unsigned char *) isymbuf;
4336 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
4337 bfd_put_8 (abfd, 0xfe, contents + irel->r_offset - 1);
4367 && symtab_hdr->contents != (unsigned char *) isymbuf)
4374 symtab_hdr->contents = (unsigned char *) isymbuf;
4378 if (contents != NULL
4379 && elf_section_data (sec)->this_hdr.contents != contents)
4382 free (contents);
4385 /* Cache the section contents for elf_link_input_bfd. */
4386 elf_section_data (sec)->this_hdr.contents = contents;
4396 if (symtab_hdr->contents != (unsigned char *) isymbuf)
4398 if (elf_section_data (section)->this_hdr.contents != contents)
4399 free (contents);
4425 particular set of section contents, specially. */
4427 || elf_section_data (input_section)->this_hdr.contents == NULL)
4442 memcpy (data, elf_section_data (input_section)->this_hdr.contents,
4459 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
4497 if (symtab_hdr->contents != (unsigned char *) isymbuf)
4507 if (symtab_hdr->contents != (unsigned char *) isymbuf)
4893 will fill in the contents of the procedure linkage table later,
5030 /* Set the contents of the .interp section to the interpreter. */
5036 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER;
5115 /* Allocate memory for the section contents. We use bfd_zalloc
5117 section's contents are written out. This should not happen,
5120 s->contents = bfd_zalloc (dynobj, s->size);
5121 if (s->contents == NULL)
5128 /* Finish up dynamic symbol handling. We set the contents of various
5176 memcpy (splt->contents + h->plt.offset, elf_mn10300_plt_entry,
5182 (splt->contents + h->plt.offset
5187 (splt->contents + h->plt.offset
5192 memcpy (splt->contents + h->plt.offset, elf_mn10300_pic_plt_entry,
5196 (splt->contents + h->plt.offset
5201 (splt->contents + h->plt.offset
5210 sgot->contents + got_offset);
5219 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
5246 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
5247 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset + 4);
5251 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
5263 rel.r_addend = bfd_get_32 (output_bfd, sgot->contents + h->got.offset);
5264 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
5288 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
5297 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
5322 (bfd_byte *) ((Elf32_External_Rela *) s->contents
5359 dyncon = (Elf32_External_Dyn *) sdyn->contents;
5360 dynconend = (Elf32_External_Dyn *) (sdyn->contents + sdyn->size);
5399 memcpy (splt->contents, elf_mn10300_pic_plt_entry,
5404 memcpy (splt->contents, elf_mn10300_plt0_entry, PLT0_ENTRY_SIZE);
5407 splt->contents + elf_mn10300_plt0_gotid_offset (info));
5410 splt->contents + elf_mn10300_plt0_linker_offset (info));
5431 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents);
5435 sgot->contents);
5436 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 4);
5437 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 8);