diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-06-09 07:37:19 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-06-09 07:37:19 +0000 |
commit | c2f09c751bc27ae3c27cbb19ed65678c39b0c565 (patch) | |
tree | 7e37d5cff1efd72a8b3141d3273f9db06ef2ef2d /bfd/mach-o-i386.c | |
parent | 46a8f92a3e2b5eb84cf5bbea461db2b26b1c47a3 (diff) | |
download | gdb-c2f09c751bc27ae3c27cbb19ed65678c39b0c565.zip gdb-c2f09c751bc27ae3c27cbb19ed65678c39b0c565.tar.gz gdb-c2f09c751bc27ae3c27cbb19ed65678c39b0c565.tar.bz2 |
2009-06-09 Tristan Gingold <gingold@adacore.com>
* mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
and stabstr_segment fields.
(mach_o_be_vec, mach_o_le_vec): Removed
(bfd_mach_o_version): New prototype.
* mach-o.c (bfd_mach_o_version): Make this function public.
(mach_o_wide_p): New function.
(bfd_mach_o_wide_p): Ditto.
(bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
weird names.
(bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
Search in the list only if the name starts with a dot.
(bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
test. Check bfd_seek status.
(bfd_mach_o_scan_write_thread): Check bfd_seek status.
(bfd_mach_o_scan_write_section_32): Ditto.
(bfd_mach_o_scan_write_section_64): Ditto.
(bfd_mach_o_scan_write_section): Removed.
(bfd_mach_o_scan_write_segment): Split into ...
(bfd_mach_o_scan_write_segment_32): ... this and ...
(bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status.
(bfd_mach_o_scan_write_symtab_symbols): Moved into ...
(bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD
symbol table. Now returns a boolean.
(bfd_mach_o_write_contents): Set filetype. Check bfd_seek status.
Adjust for status type.
(bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
test. Write symbol table. Numbers the sections.
(bfd_mach_o_read_header): Check bfd_seek status.
Use mach_o_wide_p instead of hard-coded test.
(bfd_mach_o_scan_read_section_32): Check bfd_seek status.
(bfd_mach_o_scan_read_section_64): Ditto.
(bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status.
Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly
handled common symbols.
(bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
(bfd_mach_o_scan_read_dylinker): Ditto.
(bfd_mach_o_scan_read_dylib): Ditto.
(bfd_mach_o_scan_read_thread): Ditto.
(bfd_mach_o_scan_read_symtab): Ditto.
Do not create a section for the stabs.
(bfd_mach_o_scan_read_uuid): Check bfd_seek status.
(bfd_mach_o_scan_read_segment): Ditto.
(bfd_mach_o_scan_read_command): Ditto.
(bfd_mach_o_scan_start_address): Ditto.
(bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
(bfd_mach_o_archive_p): Check bfd_seek status.
(bfd_mach_o_core_fetch_environment): Ditto.
* mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
Diffstat (limited to 'bfd/mach-o-i386.c')
-rw-r--r-- | bfd/mach-o-i386.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bfd/mach-o-i386.c b/bfd/mach-o-i386.c index 60a6a6f..7d389f55 100644 --- a/bfd/mach-o-i386.c +++ b/bfd/mach-o-i386.c @@ -54,7 +54,6 @@ bfd_mach_o_i386_mkobject (bfd *abfd) mdata->header.magic = BFD_MACH_O_MH_MAGIC; mdata->header.cputype = BFD_MACH_O_CPU_TYPE_I386; mdata->header.cpusubtype = BFD_MACH_O_CPU_SUBTYPE_X86_ALL; - mdata->header.filetype = BFD_MACH_O_MH_OBJECT; mdata->header.byteorder = BFD_ENDIAN_LITTLE; mdata->header.version = 1; |