Lines Matching defs:contents

156    actual contents and size of these sections later.  */
2248 /* The contents field must last into write_object_contents, so we
2250 cannot be sure that the contents will actually be filled in,
2252 rel_hdr->contents = bfd_zalloc (abfd, rel_hdr->sh_size);
2253 if (rel_hdr->contents == NULL && rel_hdr->sh_size != 0)
2327 erel = output_rel_hdr->contents;
3013 newcontents = bfd_realloc (s->contents, newsize);
3022 s->contents = newcontents;
3059 for (extdyn = sdyn->contents;
3060 extdyn < sdyn->contents + sdyn->size;
3151 for (extdyn = sdyn->contents;
3152 extdyn < sdyn->contents + sdyn->size;
3195 p = s->contents;
3227 p = s->contents;
5112 bfd_byte *contents;
5207 s->contents + (s->indx[bucket] - s->symindx) * 4);
5375 /* Set up the sizes and contents of the ELF dynamic sections. This is
5809 s->contents = bfd_alloc (output_bfd, s->size);
5810 if (s->contents == NULL && s->size != 0)
5815 p = s->contents;
6046 s->contents = bfd_alloc (output_bfd, s->size);
6047 if (s->contents == NULL)
6050 p = s->contents;
6204 s->contents = bfd_zalloc (output_bfd, s->size);
6205 if (s->contents == NULL)
6214 We will build the contents of .dynsym and .hash when we build
6224 s->contents = bfd_alloc (output_bfd, s->size);
6225 if (s->contents == NULL)
6231 memset (s->contents, 0, section_sym_count * bed->s->sizeof_sym);
6274 s->contents = bfd_zalloc (output_bfd, s->size);
6275 if (s->contents == NULL)
6278 bfd_put (8 * hash_entry_size, output_bfd, bucketcount, s->contents);
6280 s->contents + hash_entry_size);
6286 unsigned char *contents;
6328 contents = bfd_zalloc (output_bfd, s->size);
6329 if (contents == NULL)
6331 s->contents = contents;
6333 bfd_put_32 (output_bfd, 1, contents);
6335 bfd_put_32 (output_bfd, 1, contents + 4);
6337 bfd_put_32 (output_bfd, 1, contents + 8);
6339 bfd_put_32 (output_bfd, 0, contents + 12);
6341 bfd_put (bed->s->arch_size, output_bfd, 0, contents + 16);
6344 contents + 16 + bed->s->arch_size / 8);
6401 contents = bfd_zalloc (output_bfd, s->size);
6402 if (contents == NULL)
6409 s->contents = contents;
6410 bfd_put_32 (output_bfd, bucketcount, contents);
6411 bfd_put_32 (output_bfd, cinfo.symindx, contents + 4);
6412 bfd_put_32 (output_bfd, maskwords, contents + 8);
6413 bfd_put_32 (output_bfd, cinfo.shift2, contents + 12);
6414 contents += 16 + cinfo.maskbits / 8;
6419 bfd_put_32 (output_bfd, 0, contents);
6421 bfd_put_32 (output_bfd, cinfo.indx[i], contents);
6422 contents += 4;
6425 cinfo.contents = contents;
6431 contents = s->contents + 16;
6435 contents);
6436 contents += bed->s->arch_size / 8;
6477 /* Buffer large enough to hold contents of any section. */
6478 bfd_byte *contents;
7106 bfd_byte * contents,
7191 x = get_value (wordsz, chunksz, input_bfd, contents + rel->r_offset);
7228 put_value (wordsz, chunksz, input_bfd, x, contents + rel->r_offset);
7277 erela = rel_hdr->contents;
7554 if (o->contents == NULL && o->size != 0)
7562 erel = o->contents;
7563 erelend = o->contents + o->size;
7606 erel = o->contents;
7607 erelend = o->contents + o->size;
8160 esym = finfo->dynsym_sec->contents + h->dynindx * bed->s->sizeof_sym;
8181 bucketpos = ((bfd_byte *) finfo->hash_sec->contents
8186 ((bfd_byte *) finfo->hash_sec->contents
8190 if (finfo->symver_sec != NULL && finfo->symver_sec->contents != NULL)
8215 eversym = (Elf_External_Versym *) finfo->symver_sec->contents;
8359 contents. */
8376 isymbuf = (Elf_Internal_Sym *) symtab_hdr->contents;
8535 /* Relocate the contents of each section. */
8539 bfd_byte *contents;
8558 /* Get the contents of the section. They have been cached by a
8560 file, so the contents field will not have been set by any of
8562 if (elf_section_data (o)->this_hdr.contents != NULL)
8563 contents = elf_section_data (o)->this_hdr.contents;
8568 contents = finfo->contents;
8569 if (! bfd_get_section_contents (input_bfd, o, contents, 0, amt))
8699 section contents as necessary, and (if using Rela relocs
8717 input_bfd, o, contents,
8974 /* Write out the modified section contents. */
8977 contents))
8987 o, &elf_section_data (o)->sec_info, contents)))
8998 o, contents))
9006 contents,
9165 erel = rel_hdr->contents;
9396 finfo.contents = NULL;
9410 sections from the link, and set the contents of the output
9736 finfo.contents = bfd_malloc (max_contents_size);
9737 if (finfo.contents == NULL)
9923 bfd_byte *dynsym = finfo.dynsym_sec->contents;
10107 dyncon = o->contents;
10108 dynconend = o->contents + o->size;
10278 dyncon = o->contents;
10279 dynconend = o->contents + o->size;
10316 o->contents,
10323 /* The contents of the .dynstr section are actually in a
10358 if (finfo.contents != NULL)
10359 free (finfo.contents);
10389 bfd_byte *contents = bfd_malloc (attr_size);
10390 if (contents == NULL)
10392 bfd_elf_set_obj_attr_contents (abfd, contents, attr_size);
10393 bfd_set_section_contents (abfd, attr_section, contents, 0, attr_size);
10394 free (contents);
10402 if (finfo.contents != NULL)
10403 free (finfo.contents);
10513 isym = (Elf_Internal_Sym *) symtab_hdr->contents;
10579 if (isym != NULL && symtab_hdr->contents != (unsigned char *) isym)
10584 symtab_hdr->contents = (unsigned char *) isym;
11334 cookie.locsyms = (Elf_Internal_Sym *) symtab_hdr->contents;
11396 && symtab_hdr->contents != (unsigned char *) cookie.locsyms)
11401 symtab_hdr->contents = (unsigned char *) cookie.locsyms;
11506 (_("%B: warning: could not read contents of section `%A'"),
11511 (_("%B: warning: could not read contents of section `%A'"),
11515 (_("%B: warning: duplicate section `%A' has different contents"),