Searched refs:obfd (Results 1 - 25 of 99) sorted by relevance

1234

/haiku-fatelf/src/bin/gdb/gdb/
H A Dfbsd-nat.h36 void *obfd);
41 extern char *fbsd_make_corefile_notes (bfd *obfd, int *note_size);
H A Dgcore.c47 bfd *obfd; local
69 obfd = bfd_openw (corefilename, default_gcore_target ());
70 if (!obfd)
74 old_chain = make_cleanup_bfd_close (obfd);
76 bfd_set_format (obfd, bfd_core);
77 bfd_set_arch_mach (obfd, default_gcore_arch (), default_gcore_mach ());
80 note_data = target_make_corefile_notes (obfd, &note_size);
85 note_sec = bfd_make_section_anyway (obfd, "note0");
90 bfd_set_section_vma (obfd, note_sec, 0);
91 bfd_set_section_flags (obfd, note_se
289 make_output_phdrs(bfd *obfd, asection *osec, void *ignored) argument
313 bfd *obfd = data; local
393 objfile_find_memory_regions(int (*func) (CORE_ADDR, unsigned long, int, int, int, void *), void *obfd) argument
445 gcore_copy_callback(bfd *obfd, asection *osec, void *ignored) argument
477 gcore_memory_sections(bfd *obfd) argument
[all...]
H A Dfbsd-nat.c84 void *obfd)
122 func (start, size, read, write, exec, obfd);
133 fbsd_make_corefile_notes (bfd *obfd, int *note_size) argument
145 i_ehdrp = elf_elfheader (obfd);
155 note_data = elfcore_write_prstatus (obfd, note_data, note_size,
164 note_data = elfcore_write_prfpreg (obfd, note_data, note_size,
175 note_data = elfcore_write_prpsinfo (obfd, note_data, note_size,
82 fbsd_find_memory_regions(int (*func) (CORE_ADDR, unsigned long, int, int, int, void *), void *obfd) argument
H A Dsomread.c332 bfd *abfd = objfile->obfd;
434 objfile->num_sections = bfd_count_sections (objfile->obfd);
508 text_section = bfd_get_section_by_name (objfile->obfd, "$SHLIB_INFO$");
512 bfd_get_section_contents (objfile->obfd, text_section, dl_header, 0, 12 * sizeof (int));
531 bfd_get_section_contents (objfile->obfd, text_section, string_buffer,
546 bfd_get_section_contents (objfile->obfd, text_section, buffer,
566 bfd_get_section_contents (objfile->obfd, text_section, buffer,
631 text_section = bfd_get_section_by_name (objfile->obfd, "$SHLIB_INFO$");
635 bfd_get_section_contents (objfile->obfd, text_section, dl_header, 0, 12 * sizeof (int));
654 bfd_get_section_contents (objfile->obfd, text_sectio
[all...]
H A Dsymfile.c406 sect = bfd_get_section_by_name (objfile->obfd, ".text");
410 sect = bfd_get_section_by_name (objfile->obfd, ".data");
414 sect = bfd_get_section_by_name (objfile->obfd, ".bss");
418 sect = bfd_get_section_by_name (objfile->obfd, ".rodata");
465 objfile->num_sections = bfd_count_sections (objfile->obfd);
555 = alloc_section_addr_info (bfd_count_sections (objfile->obfd));
600 lower_sect = bfd_get_section_by_name (objfile->obfd, ".text");
602 bfd_map_over_sections (objfile->obfd, find_lowest_section,
608 if ((bfd_get_section_flags (objfile->obfd, lower_sect) & SEC_CODE) == 0)
611 bfd_section_name (objfile->obfd, lower_sec
3418 bfd *obfd = osect->objfile->obfd; local
3479 bfd *obfd = osect->objfile->obfd; local
[all...]
H A Delfread.c166 int stripped = (bfd_get_symcount (objfile->obfd) == 0);
170 storage_needed = bfd_get_dynamic_symtab_upper_bound (objfile->obfd);
178 storage_needed = bfd_get_symtab_upper_bound (objfile->obfd);
180 error ("Can't read symbols from %s: %s", bfd_get_filename (objfile->obfd),
188 number_of_symbols = bfd_canonicalize_dynamic_symtab (objfile->obfd,
191 number_of_symbols = bfd_canonicalize_symtab (objfile->obfd, symbol_table);
193 error ("Can't read symbols from %s: %s", bfd_get_filename (objfile->obfd),
490 bfd *abfd = objfile->obfd;
H A Dsymfile-mem.c125 templ = symfile_objfile->obfd;
H A Dxcoffread.c270 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args);
285 bfd_map_over_sections (objfile->obfd, find_targ_sec, &args);
594 coff_data (this_symtab_psymtab->objfile->obfd)->local_linesz;
786 abfd = this_symtab_psymtab->objfile->obfd;
878 bfd_coff_swap_sym_in (objfile->obfd, raw_symbol, &symbol);
893 coff_data (objfile->obfd)->local_symesz;
913 bfd *abfd = objfile->obfd;
1616 bfd_coff_swap_sym_in (this_symtab_psymtab->objfile->obfd,
1640 int xcoff64 = bfd_xcoff_is_xcoff64 (objfile->obfd);
1692 bfd_coff_swap_aux_in (objfile->obfd, stb
[all...]
H A Dobjfiles.c126 bfd_map_over_sections (objfile->obfd, add_to_objfile_sections, (char *) objfile);
180 objfile->obfd = abfd;
242 if (bfd_get_file_flags (objfile->obfd) & EXEC_P)
246 objfile->ei.entry_point = bfd_get_start_address (objfile->obfd);
409 if (objfile->obfd != NULL)
411 char *name = bfd_get_filename (objfile->obfd);
412 if (!bfd_close (objfile->obfd))
638 abfd = objfile->obfd;
H A Dpa64solib.c277 so->abfd = so->objfile->obfd;
413 shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, ".dynamic");
418 if (bfd_section_size (symfile_objfile->obfd, shlib_info) == 0)
486 shlib_info = bfd_get_section_by_name (symfile_objfile->obfd, ".dynamic");
491 if (bfd_section_size (symfile_objfile->obfd, shlib_info) == 0)
951 dyninfo_sect = bfd_get_section_by_name (symfile_objfile->obfd,
1017 dyninfo_addr = bfd_section_vma (symfile_objfile->obfd, dyninfo_sect);
1035 dyn_tag = bfd_h_get_64 (symfile_objfile->obfd,
H A Dnlmread.c177 bfd *abfd = objfile->obfd;
H A Dsolib-haiku.c149 TRACE(("relocate_main_executable(): symfile_objfile->obfd: %p\n",
150 (symfile_objfile ? symfile_objfile->obfd : NULL)));
154 if (symfile_objfile && symfile_objfile->obfd && appImageInfo) {
155 CORE_ADDR unrelocatedAddress = get_bfd_vma(symfile_objfile->obfd);
H A Ddbxread.c495 if (tempstring[0] == bfd_get_symbol_leading_char (objfile->obfd))
539 sym_bfd = objfile->obfd;
626 bfd *sym_bfd = objfile->obfd;
991 bfd *abfd = objfile->obfd;
1245 symfile_bfd = objfile->obfd; /* For next_text_symbol */
1246 abfd = objfile->obfd;
2386 bfd_seek (pst->objfile->obfd, SYMBOL_OFFSET (pst), SEEK_SET);
2424 sym_bfd = pst->objfile->obfd;
2431 = symfile_relocate_debug_section (pst->objfile->obfd,
2488 abfd = objfile->obfd;
[all...]
H A Dhppa-tdep.c337 bfd_map_over_sections (objfile->obfd,
344 bfd_get_section_contents (objfile->obfd, section, buf, 0, size);
350 table[i].region_start = bfd_get_32 (objfile->obfd,
354 table[i].region_end = bfd_get_32 (objfile->obfd, (bfd_byte *) buf);
357 tmp = bfd_get_32 (objfile->obfd, (bfd_byte *) buf);
383 tmp = bfd_get_32 (objfile->obfd, (bfd_byte *) buf);
432 for (unwind_sec = objfile->obfd->sections;
439 unwind_size = bfd_section_size (objfile->obfd, unwind_sec);
448 stub_unwind_sec = bfd_get_section_by_name (objfile->obfd, "$UNWIND_END$");
452 stub_unwind_size = bfd_section_size (objfile->obfd, stub_unwind_se
[all...]
/haiku-fatelf/src/bin/gdb/bfd/
H A Delf32-sh64.c185 sh64_elf_copy_private_data (bfd * ibfd, bfd * obfd) argument
188 || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
191 BFD_ASSERT (!elf_flags_init (obfd)
192 || (elf_elfheader (obfd)->e_flags
195 elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
200 sh64_elf_merge_private_data (bfd *ibfd, bfd *obfd) argument
204 if (! _bfd_generic_verify_endian_match (ibfd, obfd))
208 || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
211 if (bfd_get_arch_size (ibfd) != bfd_get_arch_size (obfd))
216 && bfd_get_arch_size (obfd)
305 sh64_bfd_elf_copy_private_section_data(bfd *ibfd, asection *isec, bfd *obfd, asection *osec) argument
[all...]
H A Dcpu-arm.c165 bfd_arm_merge_machines (ibfd, obfd)
167 bfd * obfd;
170 unsigned int out = bfd_get_mach (obfd);
174 bfd_set_arch_mach (obfd, bfd_arch_arm, in);
181 bfd_set_arch_mach (obfd, bfd_arch_arm, bfd_mach_arm_unknown);
199 ibfd, obfd);
208 obfd, ibfd);
213 bfd_set_arch_mach (obfd, bfd_arch_arm, in);
H A Dcpu-sh.c422 sh_merge_bfd_arch (bfd *ibfd, bfd *obfd) argument
426 if (! _bfd_generic_verify_endian_match (ibfd, obfd))
429 old_arch = sh_get_arch_up_from_bfd_mach (bfd_get_mach (obfd));
448 bfd_printable_name (obfd),
454 bfd_default_set_arch_mach (obfd, bfd_arch_sh,
H A Delf32-iq2000.c788 iq2000_elf_copy_private_bfd_data (ibfd, obfd)
790 bfd *obfd;
793 || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
796 BFD_ASSERT (!elf_flags_init (obfd)
797 || elf_elfheader (obfd)->e_flags == elf_elfheader (ibfd)->e_flags);
799 elf_elfheader (obfd)->e_flags = elf_elfheader (ibfd)->e_flags;
800 elf_flags_init (obfd) = TRUE;
808 iq2000_elf_merge_private_bfd_data (ibfd, obfd)
810 bfd *obfd;
820 old_flags = elf_elfheader (obfd)
[all...]
H A Delf32-mcore.c307 mcore_elf_merge_private_bfd_data (ibfd, obfd)
309 bfd * obfd;
315 if (! _bfd_generic_verify_endian_match (ibfd, obfd))
319 || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
323 old_flags = elf_elfheader (obfd)->e_flags;
325 if (! elf_flags_init (obfd)) /* First call, no flags set */
327 elf_flags_init (obfd) = TRUE;
328 elf_elfheader (obfd)->e_flags = new_flags;
H A Dcoff-stgo32.c393 to the new obfd. */
396 go32_stubbed_coff_bfd_copy_private_bfd_data (ibfd, obfd)
398 bfd *obfd;
401 if (ibfd->xvec != obfd->xvec)
406 || bfd_coff_go32stub (obfd) == NULL)
410 memcpy (bfd_coff_go32stub (obfd), bfd_coff_go32stub (ibfd), STUBSIZE);
H A Dcoff-arm.c2204 coff_arm_adjust_symndx (obfd, info, ibfd, sec, irel, adjustedp)
2205 bfd *obfd ATTRIBUTE_UNUSED;
2233 coff_arm_merge_private_bfd_data (ibfd, obfd)
2235 bfd * obfd;
2237 BFD_ASSERT (ibfd != NULL && obfd != NULL);
2239 if (ibfd == obfd)
2246 || obfd->xvec->flavour != bfd_target_coff_flavour)
2251 if (! bfd_arm_merge_machines (ibfd, obfd))
2257 if (APCS_SET (obfd))
2260 if (APCS_26_FLAG (obfd) !
[all...]
H A Delf32-m68hc1x.c1237 _bfd_m68hc11_elf_merge_private_bfd_data (bfd *ibfd, bfd *obfd)
1244 if (!_bfd_generic_verify_endian_match (ibfd, obfd))
1248 || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
1252 elf_elfheader (obfd)->e_flags |= new_flags & EF_M68HC11_ABI;
1253 old_flags = elf_elfheader (obfd)->e_flags;
1255 if (! elf_flags_init (obfd))
1257 elf_flags_init (obfd) = TRUE;
1258 elf_elfheader (obfd)->e_flags = new_flags;
1259 elf_elfheader (obfd)->e_ident[EI_CLASS]
1262 if (bfd_get_arch (obfd)
1236 _bfd_m68hc11_elf_merge_private_bfd_data(bfd *ibfd, bfd *obfd) argument
[all...]
H A Daoutf1.h104 sunos_merge_private_bfd_data (ibfd, obfd)
105 bfd *ibfd, *obfd; variable
108 || bfd_get_flavour (obfd) != bfd_target_aout_flavour)
111 if (bfd_get_arch (obfd) == bfd_arch_sparc)
113 if (bfd_get_mach (obfd) < bfd_get_mach (ibfd))
114 bfd_set_arch_mach (obfd, bfd_arch_sparc, bfd_get_mach (ibfd));
H A Daout-target.h235 MY_bfd_copy_private_section_data (ibfd, isec, obfd, osec)
238 bfd *obfd; variable
242 && bfd_get_flavour (obfd) == bfd_target_aout_flavour)
243 obj_aout_subformat (obfd) = obj_aout_subformat (ibfd); variable
/haiku-fatelf/src/bin/gdb/gdb/cli/
H A Dcli-dump.c150 bfd *obfd; local
154 obfd = bfd_openw (filename, target);
155 if (obfd == NULL)
158 make_cleanup_bfd_close (obfd);
159 if (!bfd_set_format (obfd, bfd_object))
169 return obfd;
212 bfd *obfd; local
215 obfd = bfd_openw_with_cleanup (filename, target, mode);
216 osection = bfd_make_section_anyway (obfd, ".newsec");
217 bfd_set_section_size (obfd, osectio
[all...]

Completed in 278 milliseconds

1234