Lines Matching defs:contents

978 				 input_section, contents, offset, value,
984 bfd_byte *contents;
995 bfd_byte *hit_data = contents + offset;
1098 (bfd_byte *) (((Elf32_External_Rela *) sreloc->contents)
1316 sgot->contents + off);
1326 bfd_put_32 (output_bfd, value, sgot->contents + off);
1343 srelgot->contents)
1388 contents, relocs, local_syms, local_sections)
1393 bfd_byte *contents;
1489 contents, rel->r_offset,
1668 bfd_byte *contents = NULL;
1693 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
1719 /* Get cached copy of section contents if it exists. */
1720 if (elf_section_data (section)->this_hdr.contents != NULL)
1721 contents = elf_section_data (section)->this_hdr.contents;
1726 &contents))
1730 contents = NULL;
1824 contents + irel->r_offset - 1);
1841 /* Now look at the actual contents to get the stack size,
1919 isym->st_value, contents);
1932 contents);
1942 /* Cache or free any memory we allocated for the contents. */
1943 if (contents != NULL
1944 && elf_section_data (section)->this_hdr.contents != contents)
1947 free (contents);
1950 /* Cache the section contents for elf_link_input_bfd. */
1951 elf_section_data (section)->this_hdr.contents = contents;
1954 contents = NULL;
1959 && symtab_hdr->contents != (unsigned char *) isymbuf)
1966 symtab_hdr->contents = (unsigned char *) isymbuf;
1996 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
2031 /* Get cached copy of section contents if it exists. */
2032 if (elf_section_data (section)->this_hdr.contents != NULL)
2033 contents = elf_section_data (section)->this_hdr.contents;
2038 &contents))
2100 elf_section_data (section)->this_hdr.contents = contents;
2101 symtab_hdr->contents = (unsigned char *) isymbuf;
2154 elf_section_data (section)->this_hdr.contents = contents;
2155 symtab_hdr->contents = (unsigned char *) isymbuf;
2193 /* Cache or free any memory we allocated for the contents. */
2194 if (contents != NULL
2195 && elf_section_data (section)->this_hdr.contents != contents)
2198 free (contents);
2201 /* Cache the section contents for elf_link_input_bfd. */
2202 elf_section_data (section)->this_hdr.contents = contents;
2205 contents = NULL;
2210 && symtab_hdr->contents != (unsigned char *) isymbuf)
2217 symtab_hdr->contents = (unsigned char *) isymbuf;
2225 contents = NULL;
2263 /* Get the section contents if we haven't done so already. */
2264 if (contents == NULL)
2267 if (elf_section_data (sec)->this_hdr.contents != NULL)
2268 contents = elf_section_data (sec)->this_hdr.contents;
2272 if (!bfd_malloc_and_get_section (abfd, sec, &contents))
2280 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
2365 contents, the section relocs, and the BFD symbol table. We
2406 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2411 /* Note that we've changed the relocs, section contents,
2414 elf_section_data (sec)->this_hdr.contents = contents;
2415 symtab_hdr->contents = (unsigned char *) isymbuf;
2418 bfd_put_8 (abfd, 0xfc, contents + irel->r_offset - 1);
2419 bfd_put_8 (abfd, 0xff, contents + irel->r_offset);
2442 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2448 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 4);
2450 contents + irel->r_offset + 5);
2467 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2472 /* Note that we've changed the relocs, section contents, etc. */
2474 elf_section_data (sec)->this_hdr.contents = contents;
2475 symtab_hdr->contents = (unsigned char *) isymbuf;
2479 bfd_put_8 (abfd, 0xcc, contents + irel->r_offset - 1);
2481 bfd_put_8 (abfd, 0xcd, contents + irel->r_offset - 1);
2483 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
2516 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2521 /* Note that we've changed the relocs, section contents,
2524 elf_section_data (sec)->this_hdr.contents = contents;
2525 symtab_hdr->contents = (unsigned char *) isymbuf;
2528 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 1);
2529 bfd_put_8 (abfd, 0xff, contents + irel->r_offset);
2550 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2556 bfd_put_8 (abfd, h->movm_args, contents + irel->r_offset + 2);
2558 contents + irel->r_offset + 3);
2575 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2580 /* Note that we've changed the relocs, section contents, etc. */
2582 elf_section_data (sec)->this_hdr.contents = contents;
2583 symtab_hdr->contents = (unsigned char *) isymbuf;
2586 bfd_put_8 (abfd, 0xca, contents + irel->r_offset - 1);
2632 code = bfd_get_8 (abfd, contents + irel->r_offset + 1);
2657 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2671 /* Note that we've changed the relocs, section contents, etc. */
2673 elf_section_data (sec)->this_hdr.contents = contents;
2674 symtab_hdr->contents = (unsigned char *) isymbuf;
2722 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
2758 code = bfd_get_8 (abfd, contents + irel->r_offset - 3);
2763 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
2779 /* Note that we've changed the relocation contents,
2782 elf_section_data (sec)->this_hdr.contents = contents;
2783 symtab_hdr->contents = (unsigned char *) isymbuf;
2786 bfd_put_8 (abfd, 0xfb, contents + irel->r_offset - 3);
2787 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
2860 code = bfd_get_8 (abfd, contents + irel->r_offset - 3);
2865 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
2884 /* Note that we've changed the relocation contents,
2887 elf_section_data (sec)->this_hdr.contents = contents;
2888 symtab_hdr->contents = (unsigned char *) isymbuf;
2891 bfd_put_8 (abfd, 0xfd, contents + irel->r_offset - 3);
2892 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
2936 code = bfd_get_8 (abfd, contents + irel->r_offset - 2);
2942 code = bfd_get_8 (abfd, contents + irel->r_offset - 1);
2970 /* Note that we've changed the relocation contents, etc. */
2972 elf_section_data (sec)->this_hdr.contents = contents;
2973 symtab_hdr->contents = (unsigned char *) isymbuf;
2976 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
2977 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
3012 /* Note that we've changed the relocation contents, etc. */
3014 elf_section_data (sec)->this_hdr.contents = contents;
3015 symtab_hdr->contents = (unsigned char *) isymbuf;
3027 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
3071 /* Note that we've changed the relocation contents, etc. */
3073 elf_section_data (sec)->this_hdr.contents = contents;
3074 symtab_hdr->contents = (unsigned char *) isymbuf;
3077 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
3078 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
3128 /* Note that we've changed the relocation contents, etc. */
3130 elf_section_data (sec)->this_hdr.contents = contents;
3131 symtab_hdr->contents = (unsigned char *) isymbuf;
3147 bfd_put_8 (abfd, code, contents + irel->r_offset - 2);
3214 /* Note that we've changed the relocation contents, etc. */
3216 elf_section_data (sec)->this_hdr.contents = contents;
3217 symtab_hdr->contents = (unsigned char *) isymbuf;
3220 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
3221 bfd_put_8 (abfd, code, contents + irel->r_offset - 1);
3250 /* Note that we've changed the relocation contents, etc. */
3252 elf_section_data (sec)->this_hdr.contents = contents;
3253 symtab_hdr->contents = (unsigned char *) isymbuf;
3256 bfd_put_8 (abfd, 0xfa, contents + irel->r_offset - 2);
3257 bfd_put_8 (abfd, 0xfe, contents + irel->r_offset - 1);
3287 && symtab_hdr->contents != (unsigned char *) isymbuf)
3294 symtab_hdr->contents = (unsigned char *) isymbuf;
3298 if (contents != NULL
3299 && elf_section_data (sec)->this_hdr.contents != contents)
3302 free (contents);
3305 /* Cache the section contents for elf_link_input_bfd. */
3306 elf_section_data (sec)->this_hdr.contents = contents;
3318 && symtab_hdr->contents != (unsigned char *) isymbuf)
3320 if (contents != NULL
3321 && elf_section_data (section)->this_hdr.contents != contents)
3322 free (contents);
3332 contents CONTENTS, store the information in the hash table. */
3334 compute_function_info (abfd, hash, addr, contents)
3338 unsigned char *contents;
3351 byte1 = bfd_get_8 (abfd, contents + addr);
3352 byte2 = bfd_get_8 (abfd, contents + addr + 1);
3358 byte1 = bfd_get_8 (abfd, contents + addr);
3359 byte2 = bfd_get_8 (abfd, contents + addr + 1);
3407 int temp = bfd_get_8 (abfd, contents + addr + 2);
3414 int temp = bfd_get_16 (abfd, contents + addr + 2);
3442 bfd_byte *contents;
3453 contents = elf_section_data (sec)->this_hdr.contents;
3465 memmove (contents + addr, contents + addr + count,
3480 isym = (Elf_Internal_Sym *) symtab_hdr->contents;
3575 particular set of section contents, specially. */
3577 || elf_section_data (input_section)->this_hdr.contents == NULL)
3585 memcpy (data, elf_section_data (input_section)->this_hdr.contents,
3603 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
3642 if (isymbuf != NULL && symtab_hdr->contents != (unsigned char *) isymbuf)
3653 if (isymbuf != NULL && symtab_hdr->contents != (unsigned char *) isymbuf)
4032 will fill in the contents of the procedure linkage table later,
4194 /* Set the contents of the .interp section to the interpreter. */
4200 s->contents = (unsigned char *) ELF_DYNAMIC_INTERPRETER;
4301 /* Allocate memory for the section contents. We use bfd_zalloc
4303 section's contents are written out. This should not happen,
4306 s->contents = (bfd_byte *) bfd_zalloc (dynobj, s->size);
4307 if (s->contents == NULL && s->size != 0)
4352 /* Finish up dynamic symbol handling. We set the contents of various
4400 memcpy (splt->contents + h->plt.offset, elf_mn10300_plt_entry,
4406 (splt->contents + h->plt.offset
4411 (splt->contents + h->plt.offset
4416 memcpy (splt->contents + h->plt.offset, elf_mn10300_pic_plt_entry,
4420 (splt->contents + h->plt.offset
4425 (splt->contents + h->plt.offset
4434 sgot->contents + got_offset);
4443 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
4484 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + h->got.offset);
4490 (bfd_byte *) ((Elf32_External_Rela *) srel->contents
4515 (bfd_byte *) ((Elf32_External_Rela *) s->contents
4553 dyncon = (Elf32_External_Dyn *) sdyn->contents;
4554 dynconend = (Elf32_External_Dyn *) (sdyn->contents + sdyn->size);
4613 memcpy (splt->contents, elf_mn10300_pic_plt_entry,
4618 memcpy (splt->contents, elf_mn10300_plt0_entry, PLT0_ENTRY_SIZE);
4621 splt->contents + elf_mn10300_plt0_gotid_offset (info));
4624 splt->contents + elf_mn10300_plt0_linker_offset (info));
4637 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents);
4641 sgot->contents);
4642 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 4);
4643 bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 8);