Lines Matching refs:sec

378 renumber_sections (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *countparg)  in renumber_sections()  argument
382 sec->index = *countp; in renumber_sections()
432 cvt_frag_to_fill (segT sec ATTRIBUTE_UNUSED, fragS *fragP) in cvt_frag_to_fill()
500 md_convert_frag (stdoutput, sec, fragP); in cvt_frag_to_fill()
547 relax_seg (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *xxx) in relax_seg() argument
549 segment_info_type *seginfo = seg_info (sec); in relax_seg()
553 && relax_segment (seginfo->frchainP->frch_root, sec, info->pass)) in relax_seg()
558 size_seg (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *xxx ATTRIBUTE_UNUSED) in size_seg() argument
566 subseg_change (sec, 0); in size_seg()
568 seginfo = seg_info (sec); in size_seg()
572 cvt_frag_to_fill (sec, fragp); in size_seg()
583 flags = bfd_section_flags (sec); in size_seg()
584 if (size == 0 && bfd_section_size (sec) != 0 && in size_seg()
592 x = bfd_set_section_flags (sec, flags); in size_seg()
600 newsize = md_section_align (sec, size); in size_seg()
601 x = bfd_set_section_size (sec, newsize); in size_seg()
625 tc_frob_section (sec); in size_seg()
628 obj_frob_section (sec); in size_seg()
634 dump_section_relocs (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, FILE *stream) in dump_section_relocs() argument
636 segment_info_type *seginfo = seg_info (sec); in dump_section_relocs()
642 fprintf (stream, "sec %s relocs:\n", sec->name); in dump_section_relocs()
687 asection *sec; in resolve_reloc_expr_symbols() local
704 || (sec = S_GET_SEGMENT (sym)) == NULL in resolve_reloc_expr_symbols()
705 || !SEG_NORMAL (sec)) in resolve_reloc_expr_symbols()
708 sec = NULL; in resolve_reloc_expr_symbols()
730 sec = NULL; in resolve_reloc_expr_symbols()
732 else if (sym != NULL && sec != NULL) in resolve_reloc_expr_symbols()
741 && (sec->use_rela_p in resolve_reloc_expr_symbols()
765 r->u.b.sec = sec; in resolve_reloc_expr_symbols()
779 asection *sec, in adjust_reloc_syms() argument
782 segment_info_type *seginfo = seg_info (sec); in adjust_reloc_syms()
788 dump_section_relocs (abfd, sec, stderr); in adjust_reloc_syms()
869 if (symsec != sec && ! S_IS_LOCAL (sym)) in adjust_reloc_syms()
902 dump_section_relocs (abfd, sec, stderr); in adjust_reloc_syms()
1147 asection *sec, in fix_segment() argument
1150 segment_info_type *seginfo = seg_info (sec); in fix_segment()
1152 fixup_segment (seginfo->fix_root, sec); in fix_segment()
1156 install_reloc (asection *sec, arelent *reloc, fragS *fragp, in install_reloc() argument
1173 sec, &err); in install_reloc()
1218 write_relocs (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, in write_relocs() argument
1221 segment_info_type *seginfo = seg_info (sec); in write_relocs()
1248 if (r->u.b.sec == sec) in write_relocs()
1288 *reloc = tc_gen_reloc (sec, fixp); in write_relocs()
1290 reloc = tc_gen_reloc (sec, fixp); in write_relocs()
1302 install_reloc (sec, &r->u.b.r, f, r->file, r->line); in write_relocs()
1307 install_reloc (sec, *reloc, fixp->fx_frag, in write_relocs()
1324 install_reloc (sec, &r->u.b.r, f, r->file, r->line); in write_relocs()
1349 flagword flags = bfd_section_flags (sec); in write_relocs()
1351 bfd_set_section_flags (sec, flags); in write_relocs()
1352 bfd_set_reloc (stdoutput, sec, relocs, n); in write_relocs()
1356 SET_SECTION_RELOCS (sec, relocs, n); in write_relocs()
1363 fprintf (stderr, "relocs for sec %s\n", sec->name); in write_relocs()
1423 compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED) in compress_debug() argument
1425 segment_info_type *seginfo = seg_info (sec); in compress_debug()
1430 bfd_size_type uncompressed_size = (bfd_size_type) sec->size; in compress_debug()
1437 flagword flags = bfd_section_flags (sec); in compress_debug()
1441 || sec->size < 32 in compress_debug()
1445 section_name = bfd_section_name (sec); in compress_debug()
1568 bfd_update_compression_header (abfd, (bfd_byte *) header, sec); in compress_debug()
1569 x = bfd_set_section_size (sec, compressed_size); in compress_debug()
1574 bfd_rename_section (sec, compressed_name); in compress_debug()
1594 asection *sec, in write_contents() argument
1597 segment_info_type *seginfo = seg_info (sec); in write_contents()
1603 || !(bfd_section_flags (sec) & SEC_HAS_CONTENTS)) in write_contents()
1618 x = bfd_set_section_contents (stdoutput, sec, in write_contents()
1628 sec->name, stdoutput->filename, in write_contents()
1645 (stdoutput, sec, buf, (file_ptr) offset, in write_contents()
1653 sec->name, stdoutput->filename, in write_contents()
1670 x = bfd_set_section_contents (stdoutput, sec, in write_contents()
1681 sec->name, stdoutput->filename, in write_contents()
1708 (stdoutput, sec, buf, (file_ptr) offset, in write_contents()
1717 sec->name, stdoutput->filename, in write_contents()
1892 create_note_reloc (segT sec, in create_note_reloc() argument
1905 reloc->u.b.sec = sec; in create_note_reloc()
1925 if (! sec->use_rela_p in create_note_reloc()
1945 segT sec; in maybe_generate_build_notes() local
1961 sec = subseg_new (GNU_BUILD_ATTRS_SECTION_NAME, FALSE); in maybe_generate_build_notes()
1962 elf_section_type (sec) = SHT_NOTE; in maybe_generate_build_notes()
1963 bfd_set_section_flags (sec, (SEC_READONLY | SEC_HAS_CONTENTS | SEC_DATA in maybe_generate_build_notes()
1965 bfd_set_section_alignment (sec, 2); in maybe_generate_build_notes()
2041 create_note_reloc (sec, sym, total_size, 20, desc_reloc, 0, note); in maybe_generate_build_notes()
2044 create_note_reloc (sec, sym, total_size, desc2_offset, desc_reloc, in maybe_generate_build_notes()
2054 bfd_set_section_contents (stdoutput, sec, (bfd_byte *) note, 0, total_size); in maybe_generate_build_notes()
2055 subsegs_finish_section (sec); in maybe_generate_build_notes()
2056 relax_segment (seg_info (sec)->frchainP->frch_root, sec, 0); in maybe_generate_build_notes()
2057 size_seg (stdoutput, sec, NULL); in maybe_generate_build_notes()