| /openbsd-src/gnu/usr.bin/binutils/gas/ |
| H A D | output-file.c | 41 bfd *stdoutput; variable 49 else if (!(stdoutput = bfd_openw (name, TARGET_FORMAT))) in output_file_create() 55 bfd_set_format (stdoutput, bfd_object); in output_file_create() 57 bfd_set_arch_mach (stdoutput, TARGET_ARCH, TARGET_MACH); in output_file_create() 60 stdoutput->flags |= BFD_TRADITIONAL_FORMAT; in output_file_create() 68 if (bfd_close (stdoutput) == 0) in output_file_close() 76 if (bfd_close_all_done (stdoutput) == 0) in output_file_close() 82 stdoutput = NULL; /* Trust nobody! */ in output_file_close() 97 static FILE *stdoutput; variable 104 stdoutput = stdout; in output_file_create() [all …]
|
| H A D | subsegs.c | 160 seginfo = (segment_info_type *) bfd_get_section_userdata (stdoutput, seg); in subseg_change() 174 bfd_set_section_userdata (stdoutput, seg, (PTR) seginfo); in subseg_change() 405 ? bfd_get_section_name (stdoutput, now_seg) in subseg_get() 415 secptr = bfd_make_section_old_way (stdoutput, segname); in subseg_get() 417 secptr = bfd_make_section_anyway (stdoutput, segname); in subseg_get() 420 obj_sec_set_private_data (stdoutput, secptr); in subseg_get() 440 bfd_set_section_userdata (stdoutput, secptr, (PTR) seginfo); in subseg_get() 501 return (segment_info_type *) bfd_get_section_userdata (stdoutput, sec); in seg_info() 573 return (bfd_get_section_flags (stdoutput, sec) & SEC_CODE) != 0; in subseg_text_p()
|
| H A D | write.c | 416 if ((unsigned int) align > bfd_get_section_alignment (stdoutput, seg)) in record_alignment() 417 bfd_set_section_alignment (stdoutput, seg, align); in record_alignment() 430 return bfd_get_section_alignment (stdoutput, seg); in get_recorded_alignment() 581 md_convert_frag (stdoutput, sec, fragP); in cvt_frag_to_fill() 954 s = bfd_install_relocation (stdoutput, reloc, in write_relocs() 1026 s = bfd_install_relocation (stdoutput, reloc[j], in write_relocs() 1055 sympp = bfd_get_outsymbols (stdoutput); in write_relocs() 1056 nsyms = bfd_get_symcount (stdoutput); in write_relocs() 1070 bfd_set_reloc (stdoutput, sec, relocs, n); in write_relocs() 1123 x = bfd_set_section_contents (stdoutput, sec, in write_contents() [all …]
|
| H A D | as.c | 940 applicable = bfd_applicable_section_flags (stdoutput); in perform_an_assembly_pass() 941 bfd_set_section_flags (stdoutput, text_section, in perform_an_assembly_pass() 944 bfd_set_section_flags (stdoutput, data_section, in perform_an_assembly_pass() 947 bfd_set_section_flags (stdoutput, bss_section, applicable & SEC_ALLOC); in perform_an_assembly_pass() 1072 assert (stdoutput != 0); in main() 1115 bfd_set_section_flags (stdoutput, gnustack, in main()
|
| /openbsd-src/gnu/usr.bin/binutils/gas/config/ |
| H A D | obj-ecoff.c | 149 for (sec = &stdoutput->sections; *sec != (asection *) NULL; ) in ecoff_frob_file_before_fix() 155 bfd_section_list_remove (stdoutput, sec); in ecoff_frob_file_before_fix() 160 bfd_set_section_vma (stdoutput, *sec, addr); in ecoff_frob_file_before_fix() 161 addr += bfd_section_size (stdoutput, *sec); in ecoff_frob_file_before_fix() 168 bfd_set_section_vma (stdoutput, secs[i], addr); in ecoff_frob_file_before_fix() 169 addr += bfd_section_size (stdoutput, secs[i]); in ecoff_frob_file_before_fix() 173 bfd_section_list_insert (stdoutput, &stdoutput->sections, secs[i]); in ecoff_frob_file_before_fix() 191 if (! bfd_ecoff_set_gp_value (stdoutput, alpha_gp_value)) in ecoff_frob_file_before_fix() 198 if (! bfd_ecoff_set_regmasks (stdoutput, gprmask, fprmask, cprmask)) in ecoff_frob_file_before_fix() 209 = &ecoff_backend (stdoutput)->debug_swap; in ecoff_frob_file() [all …]
|
| H A D | obj-som.c | 118 if (! bfd_som_attach_compilation_unit (stdoutput, filename, language_name, 121 bfd_perror (stdoutput->filename); 122 as_fatal ("FATAL: Attaching compiler header %s", stdoutput->filename); 161 if (!bfd_som_attach_aux_hdr (stdoutput, VERSION_AUX_ID, version)) 163 bfd_perror (stdoutput->filename); 165 stdoutput->filename); 207 if (!bfd_som_attach_aux_hdr (stdoutput, COPYRIGHT_AUX_ID, copyright)) 209 bfd_perror (stdoutput->filename); 211 stdoutput->filename); 236 space = bfd_make_section_old_way (stdoutput, "$GDB_DEBUG$"); [all …]
|
| H A D | obj-elf.c | 180 s = bfd_get_section_by_name (stdoutput, TEXT_SECTION_NAME); in elf_begin() 182 s = bfd_get_section_by_name (stdoutput, DATA_SECTION_NAME); in elf_begin() 184 s = bfd_get_section_by_name (stdoutput, BSS_SECTION_NAME); in elf_begin() 523 old_sec = bfd_get_section_by_name (stdoutput, name); in obj_elf_change_section() 525 ssect = _bfd_elf_get_sec_type_attr (stdoutput, name); in obj_elf_change_section() 622 bfd_set_section_flags (stdoutput, sec, flags); in obj_elf_change_section() 1355 bfd_set_section_flags (stdoutput, in obj_elf_version() 1524 bfd_set_section_flags (stdoutput, comment_section, in obj_elf_ident() 1549 bfd_set_section_alignment (stdoutput, seg, 2); in obj_elf_init_stab_section() 1847 bfd_map_over_sections (stdoutput, adjust_stab_sections, NULL); in elf_frob_file() [all …]
|
| H A D | tc-hppa.c | 1437 if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, DEFAULT_LEVEL)) in md_begin() 1646 && bfd_get_mach (stdoutput) < insn->arch) 1648 if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, insn->arch)) 1651 else if (bfd_get_mach (stdoutput) < insn->arch) 4084 codes = hppa_gen_reloc_type (stdoutput, 4161 reloc->howto = bfd_reloc_type_lookup (stdoutput, 4178 bfd_reloc_type_lookup (stdoutput, 4191 bfd_reloc_type_lookup (stdoutput, 4198 bfd_reloc_type_lookup (stdoutput, 4205 bfd_reloc_type_lookup (stdoutput, [all …]
|
| H A D | tc-xtensa.h | 150 #define tc_init_after_args() xtensa_file_arch_init (stdoutput) 172 bfd_map_over_sections (stdoutput, renumber_sections, &i); \
|
| H A D | tc-ppc.c | 1317 bfd_set_private_flags (stdoutput, ppc_flags); in md_begin() 1331 ppc_coff_debug_section = coff_section_from_bfd_index (stdoutput, N_DEBUG); in md_begin() 1378 bfd_set_section_flags (stdoutput, in ppc_cleanup() 1693 reloc_howto = bfd_reloc_type_lookup (stdoutput, reloc); 2652 reloc_howto = bfd_reloc_type_lookup (stdoutput, fixups[i].reloc); 4135 bfd_set_section_flags (stdoutput, pdata_section, 4139 bfd_set_section_alignment (stdoutput, pdata_section, 2); 4169 bfd_set_section_flags (stdoutput, ydata_section, 4173 bfd_set_section_alignment (stdoutput, ydata_section, 3); 4207 bfd_set_section_flags (stdoutput, reldata_section, [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gas/config/ |
| H A D | obj-ecoff.c | 83 for (sec = stdoutput->sections; sec != NULL; sec = sec->next) in ecoff_frob_file_before_fix() 89 bfd_section_list_remove (stdoutput, sec); in ecoff_frob_file_before_fix() 94 bfd_set_section_vma (stdoutput, sec, addr); in ecoff_frob_file_before_fix() 95 addr += bfd_section_size (stdoutput, sec); in ecoff_frob_file_before_fix() 101 bfd_set_section_vma (stdoutput, secs[i], addr); in ecoff_frob_file_before_fix() 102 addr += bfd_section_size (stdoutput, secs[i]); in ecoff_frob_file_before_fix() 106 bfd_section_list_prepend (stdoutput, secs[i]); in ecoff_frob_file_before_fix() 124 if (! bfd_ecoff_set_gp_value (stdoutput, alpha_gp_value)) in ecoff_frob_file_before_fix() 131 if (! bfd_ecoff_set_regmasks (stdoutput, gprmask, fprmask, cprmask)) in ecoff_frob_file_before_fix() 142 = &ecoff_backend (stdoutput)->debug_swap; in ecoff_frob_file() [all …]
|
| H A D | obj-som.c | 110 if (! bfd_som_attach_compilation_unit (stdoutput, filename, language_name, in obj_som_compiler() 113 bfd_perror (stdoutput->filename); in obj_som_compiler() 114 as_fatal ("FATAL: Attaching compiler header %s", stdoutput->filename); in obj_som_compiler() 152 if (!bfd_som_attach_aux_hdr (stdoutput, VERSION_AUX_ID, version)) in obj_som_version() 154 bfd_perror (stdoutput->filename); in obj_som_version() 156 stdoutput->filename); in obj_som_version() 197 if (!bfd_som_attach_aux_hdr (stdoutput, COPYRIGHT_AUX_ID, copyright)) in obj_som_copyright() 199 bfd_perror (stdoutput->filename); in obj_som_copyright() 201 stdoutput->filename); in obj_som_copyright() 225 space = bfd_make_section_old_way (stdoutput, "$GDB_DEBUG$"); in obj_som_init_stab_section() [all …]
|
| H A D | obj-elf.c | 190 s = bfd_get_section_by_name (stdoutput, TEXT_SECTION_NAME); in elf_begin() 192 s = bfd_get_section_by_name (stdoutput, DATA_SECTION_NAME); in elf_begin() 194 s = bfd_get_section_by_name (stdoutput, BSS_SECTION_NAME); in elf_begin() 553 old_sec = bfd_get_section_by_name_if (stdoutput, name, get_section, in obj_elf_change_section() 563 bed = get_elf_backend_data (stdoutput); in obj_elf_change_section() 564 ssect = (*bed->get_sec_type_attr) (stdoutput, sec); in obj_elf_change_section() 674 bfd_set_section_flags (stdoutput, sec, flags); in obj_elf_change_section() 1435 bfd_set_section_flags (stdoutput, in obj_elf_version() 1604 bfd_set_section_flags (stdoutput, comment_section, in obj_elf_ident() 1629 bfd_set_section_alignment (stdoutput, seg, 2); in obj_elf_init_stab_section() [all …]
|
| H A D | tc-xc16x.c | 79 if (stdoutput != NULL) in xc16xlmode() 80 if (!bfd_set_arch_mach (stdoutput, bfd_arch_xc16x, bfd_mach_xc16xl)) in xc16xlmode() 87 if (!bfd_set_arch_mach (stdoutput, bfd_arch_xc16x, bfd_mach_xc16xs)) in xc16xsmode() 94 if (!bfd_set_arch_mach (stdoutput, bfd_arch_xc16x, bfd_mach_xc16x)) in xc16xmode() 281 int align = bfd_get_section_alignment (stdoutput, segment); in md_section_align() 355 rel->howto = bfd_reloc_type_lookup (stdoutput, r_type); in tc_gen_reloc()
|
| H A D | obj-aout.c | 128 if (bfd_section_size (stdoutput, text_section) != 0) in obj_aout_frob_file_before_fix() 129 x = bfd_set_section_contents (stdoutput, text_section, &b, (file_ptr) 0, in obj_aout_frob_file_before_fix() 131 else if (bfd_section_size (stdoutput, data_section) != 0) in obj_aout_frob_file_before_fix() 132 x = bfd_set_section_contents (stdoutput, data_section, &b, (file_ptr) 0, in obj_aout_frob_file_before_fix()
|
| H A D | tc-hppa.c | 1448 if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, DEFAULT_LEVEL)) in md_begin() 1654 && bfd_get_mach (stdoutput) < insn->arch) 3073 if (bfd_get_mach (stdoutput) != pa20) 3965 && bfd_get_mach (stdoutput) < insn->arch 3966 && !bfd_set_arch_mach (stdoutput, bfd_arch_hppa, insn->arch)) 4094 codes = hppa_gen_reloc_type (stdoutput, 4171 reloc->howto = bfd_reloc_type_lookup (stdoutput, 4188 bfd_reloc_type_lookup (stdoutput, 4201 bfd_reloc_type_lookup (stdoutput, 4208 bfd_reloc_type_lookup (stdoutput, [all …]
|
| H A D | obj-coff.c | 185 s = bfd_make_debug_symbol (stdoutput, NULL, 0); in fetch_coff_debug_section() 492 bfd_set_section_flags (stdoutput, sec, in obj_coff_ident() 494 & bfd_applicable_section_flags (stdoutput))); in obj_coff_ident() 719 || (streq (bfd_get_section_name (stdoutput, in obj_coff_endef() 1463 bfd_map_over_sections (stdoutput, coff_adjust_section_syms, NULL); in coff_frob_file_after_relocs() 1606 oldflags = bfd_get_section_flags (stdoutput, sec); in obj_coff_section() 1622 if (! bfd_set_section_flags (stdoutput, sec, flags)) in obj_coff_section() 1624 bfd_section_name (stdoutput, sec), in obj_coff_section() 1671 bfd_set_section_size (stdoutput, sec, new_size); in coff_frob_section() 1727 bfd_h_put_16 (stdoutput, n_entries, (bfd_byte *) p + 6); in coff_frob_section() [all …]
|
| H A D | tc-ppc.c | 1333 bfd_set_private_flags (stdoutput, ppc_flags); in md_begin() 1347 ppc_coff_debug_section = coff_section_from_bfd_index (stdoutput, N_DEBUG); in md_begin() 1394 bfd_set_section_flags (stdoutput, in ppc_cleanup() 1702 reloc_howto = bfd_reloc_type_lookup (stdoutput, reloc); 1942 toc = bfd_get_section_by_name (stdoutput, ".toc"); in ppc_frob_file_before_adjust() 1944 && bfd_section_size (stdoutput, toc) > 0x10000) in ppc_frob_file_before_adjust() 2672 reloc_howto = bfd_reloc_type_lookup (stdoutput, fixups[i].reloc); 4155 bfd_set_section_flags (stdoutput, pdata_section, 4159 bfd_set_section_alignment (stdoutput, pdata_section, 2); 4189 bfd_set_section_flags (stdoutput, ydata_section, [all …]
|
| H A D | tc-iq2000.c | 324 bfd_set_private_flags (stdoutput, iq2000_flags); in md_begin() 327 bfd_default_set_arch_mach (stdoutput, bfd_arch_iq2000, iq2000_mach); in md_begin() 435 int align = bfd_get_section_alignment (stdoutput, segment); in md_section_align() 872 if ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) != 0) in s_iq2000_end() 972 if ((bfd_get_section_flags (stdoutput, now_seg) & SEC_CODE) != 0) in s_iq2000_ent()
|
| H A D | tc-pj.c | 219 bfd_set_arch_mach (stdoutput, TARGET_ARCH, 0); in md_begin() 533 rel->howto = bfd_reloc_type_lookup (stdoutput, r_type); in tc_gen_reloc() 541 rel->howto = bfd_reloc_type_lookup (stdoutput, BFD_RELOC_32); in tc_gen_reloc()
|
| H A D | tc-xtensa.h | 326 #define tc_init_after_args() xtensa_file_arch_init (stdoutput) 351 bfd_map_over_sections (stdoutput, renumber_sections, &i); \
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gas/ |
| H A D | output-file.c | 33 bfd *stdoutput; variable 41 else if (!(stdoutput = bfd_openw (name, TARGET_FORMAT))) in output_file_create() 50 bfd_set_format (stdoutput, bfd_object); in output_file_create() 51 bfd_set_arch_mach (stdoutput, TARGET_ARCH, TARGET_MACH); in output_file_create() 53 stdoutput->flags |= BFD_TRADITIONAL_FORMAT; in output_file_create() 60 if (bfd_close (stdoutput) == 0) in output_file_close() 66 stdoutput = NULL; /* Trust nobody! */ in output_file_close()
|
| H A D | subsegs.c | 85 seginfo = (segment_info_type *) bfd_get_section_userdata (stdoutput, seg); in subseg_change() 99 bfd_set_section_userdata (stdoutput, seg, (PTR) seginfo); in subseg_change() 234 ? bfd_get_section_name (stdoutput, now_seg) in subseg_get() 244 secptr = bfd_make_section_old_way (stdoutput, segname); in subseg_get() 246 secptr = bfd_make_section_anyway (stdoutput, segname); in subseg_get() 249 obj_sec_set_private_data (stdoutput, secptr); in subseg_get() 269 bfd_set_section_userdata (stdoutput, secptr, (PTR) seginfo); in subseg_get() 330 return (segment_info_type *) bfd_get_section_userdata (stdoutput, sec); in seg_info() 387 return (bfd_get_section_flags (stdoutput, sec) & SEC_CODE) != 0; in subseg_text_p()
|
| H A D | write.c | 352 if ((unsigned int) align > bfd_get_section_alignment (stdoutput, seg)) in record_alignment() 353 bfd_set_section_alignment (stdoutput, seg, align); in record_alignment() 362 return bfd_get_section_alignment (stdoutput, seg); in get_recorded_alignment() 475 md_convert_frag (stdoutput, sec, fragP); in cvt_frag_to_fill() 844 s = bfd_install_relocation (stdoutput, reloc, in write_relocs() 916 s = bfd_install_relocation (stdoutput, reloc[j], in write_relocs() 945 sympp = bfd_get_outsymbols (stdoutput); in write_relocs() 946 nsyms = bfd_get_symcount (stdoutput); in write_relocs() 960 bfd_set_reloc (stdoutput, sec, relocs, n); in write_relocs() 1013 x = bfd_set_section_contents (stdoutput, sec, in write_contents() [all …]
|
| H A D | as.c | 989 applicable = bfd_applicable_section_flags (stdoutput); in perform_an_assembly_pass() 990 bfd_set_section_flags (stdoutput, text_section, in perform_an_assembly_pass() 993 bfd_set_section_flags (stdoutput, data_section, in perform_an_assembly_pass() 996 bfd_set_section_flags (stdoutput, bss_section, applicable & SEC_ALLOC); in perform_an_assembly_pass() 1113 assert (stdoutput != 0); in main() 1155 bfd_set_section_flags (stdoutput, gnustack, in main()
|