This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[mach-o/committed]: Add comments and fix two typos
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils Development <binutils at sourceware dot org>
- Date: Mon, 8 Aug 2011 16:53:13 +0200
- Subject: [mach-o/committed]: Add comments and fix two typos
Hi,
this patch fixes two typos I made in the previous ones.
Tristan.
bfd/
2011-08-08 Tristan Gingold <gingold@adacore.com>
* mach-o.c (struct mach_o_segment_name_xlat): Add comments.
(segsec_names_xlat): Reorder elements.
(bfd_mach_o_read_section_32): Fix typo.
(bfd_mach_o_read_section_64): Fix typo.
RCS file: /cvs/src/src/bfd/mach-o.c,v
retrieving revision 1.63
diff -c -r1.63 mach-o.c
*** mach-o.c 8 Aug 2011 10:56:31 -0000 1.63
--- mach-o.c 8 Aug 2011 14:48:16 -0000
***************
*** 140,148 ****
static const struct mach_o_segment_name_xlat segsec_names_xlat[] =
{
- { "__DWARF", dwarf_section_names_xlat },
{ "__TEXT", text_section_names_xlat },
{ "__DATA", data_section_names_xlat },
{ NULL, NULL }
};
--- 140,148 ----
static const struct mach_o_segment_name_xlat segsec_names_xlat[] =
{
{ "__TEXT", text_section_names_xlat },
{ "__DATA", data_section_names_xlat },
+ { "__DWARF", dwarf_section_names_xlat },
{ NULL, NULL }
};
***************
*** 1675,1681 ****
!= BFD_MACH_O_SECTION_SIZE))
return NULL;
! sec = bfd_mach_o_make_bfd_section (abfd, raw.sectname, raw.segname);
if (sec == NULL)
return NULL;
--- 1675,1681 ----
return NULL;
! sec = bfd_mach_o_make_bfd_section (abfd, raw.segname, raw.sectname);
if (sec == NULL)
return NULL;
***************
*** 1714,1720 ****
!= BFD_MACH_O_SECTION_64_SIZE))
return NULL;
! sec = bfd_mach_o_make_bfd_section (abfd, raw.sectname, raw.segname);
if (sec == NULL)
return NULL;
--- 1714,1720 ----
!= BFD_MACH_O_SECTION_64_SIZE))
return NULL;
! sec = bfd_mach_o_make_bfd_section (abfd, raw.segname, raw.sectname);
if (sec == NULL)
return NULL;