Lines Matching refs:sect

42   PARAMS ((bfd *abfd, sec_ptr sect));
156 asection *sect;
212 sect = bfd_make_section (abfd, section_name);
215 while (!sect)
221 sect = bfd_make_section (abfd, try_again);
225 if (sect->name == try_again)
227 amt = strlen (sect->name);
231 strcpy (newname, sect->name);
232 sect->name = newname;
236 bfd_set_section_flags (abfd, sect, flags);
238 sect->size = ((ext->e_size[0] << 8)
241 sect->vma = H_GET_32 (abfd, ext->e_virtbase);
242 sect->filepos = H_GET_32 (abfd, ext->e_filebase);
250 sect->rel_filepos = N_TRELOFF (*execp);
251 sect->reloc_count = execp->a_trsize;
255 sect->rel_filepos = N_DRELOFF (*execp);
256 sect->reloc_count = execp->a_drsize;
309 asection *sect;
322 for (sect = abfd->sections; sect; sect = sect->next)
324 if (sect->flags & SEC_CODE)
326 exec_hdr (abfd)->a_text += sect->size;
327 exec_hdr (abfd)->a_trsize += sect->reloc_count *
330 else if (sect->flags & SEC_DATA)
332 exec_hdr (abfd)->a_data += sect->size;
333 exec_hdr (abfd)->a_drsize += sect->reloc_count *
336 else if (sect->flags & SEC_ALLOC && !(sect->flags & SEC_LOAD))
338 exec_hdr (abfd)->a_bss += sect->size;
356 for (sect = abfd->sections; sect; sect = sect->next)
357 if (sect->flags & SEC_CODE)
358 aout_adobe_write_section (abfd, sect);
360 for (sect = abfd->sections; sect; sect = sect->next)
361 if (sect->flags & SEC_DATA)
362 aout_adobe_write_section (abfd, sect);
364 for (sect = abfd->sections; sect; sect = sect->next)
365 if (!(sect->flags & (SEC_CODE | SEC_DATA)))
366 aout_adobe_write_section (abfd, sect);
387 for (sect = abfd->sections; sect; sect = sect->next)
388 if (sect->flags & SEC_CODE)
389 if (!aout_32_squirt_out_relocs (abfd, sect))
396 for (sect = abfd->sections; sect; sect = sect->next)
397 if (sect->flags & SEC_DATA)
398 if (!aout_32_squirt_out_relocs (abfd, sect))
406 aout_adobe_write_section (abfd, sect)
408 sec_ptr sect ATTRIBUTE_UNUSED;
423 sec_ptr sect;
432 for (sect = abfd->sections; sect; sect = sect->next)
434 if (sect->flags & SEC_CODE)
436 sect->filepos = section_start;
438 section_start += sect->size;
442 for (sect = abfd->sections; sect; sect = sect->next)
444 if (sect->flags & SEC_DATA)
446 sect->filepos = section_start;
448 section_start += sect->size;
452 for (sect = abfd->sections; sect; sect = sect->next)
454 if (sect->flags & SEC_HAS_CONTENTS &&
455 !(sect->flags & (SEC_CODE | SEC_DATA)))
457 sect->filepos = section_start;
459 section_start += sect->size;