diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-12-15 09:50:15 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-12-15 09:50:15 +0000 |
commit | 7f7828f676d00c8ef2befefd7912fafa9cda1a1b (patch) | |
tree | 498192ec090edb71c95eb862e13df9a1c33ceaa2 | |
parent | 65ccb1090e1acfd3bf8af44175c3f7b1b6377906 (diff) | |
download | gdb-7f7828f676d00c8ef2befefd7912fafa9cda1a1b.zip gdb-7f7828f676d00c8ef2befefd7912fafa9cda1a1b.tar.gz gdb-7f7828f676d00c8ef2befefd7912fafa9cda1a1b.tar.bz2 |
2009-12-15 Tristan Gingold <gingold@adacore.com>
* mach-o.h (bfd_mach_o_uuid_command): Remove section field.
* mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section
from this command.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/mach-o.c | 20 | ||||
-rw-r--r-- | bfd/mach-o.h | 1 |
3 files changed, 6 insertions, 21 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fdaf57e..e1105bb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ 2009-12-15 Tristan Gingold <gingold@adacore.com> + * mach-o.h (bfd_mach_o_uuid_command): Remove section field. + * mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section + from this command. + +2009-12-15 Tristan Gingold <gingold@adacore.com> + * mach-o.c (struct mach_o_section_name_xlat): Add flags field. (dwarf_section_names_xlat): Add section flags. (text_section_names_xlat): Ditto. diff --git a/bfd/mach-o.c b/bfd/mach-o.c index ab4ee74..ae86c4e 100644 --- a/bfd/mach-o.c +++ b/bfd/mach-o.c @@ -2298,9 +2298,6 @@ static int bfd_mach_o_read_uuid (bfd *abfd, bfd_mach_o_load_command *command) { bfd_mach_o_uuid_command *cmd = &command->command.uuid; - asection *bfdsec; - char *sname; - static const char prefix[] = "LC_UUID"; BFD_ASSERT (command->type == BFD_MACH_O_LC_UUID); @@ -2308,23 +2305,6 @@ bfd_mach_o_read_uuid (bfd *abfd, bfd_mach_o_load_command *command) || bfd_bread ((void *) cmd->uuid, 16, abfd) != 16) return -1; - sname = bfd_alloc (abfd, strlen (prefix) + 1); - if (sname == NULL) - return -1; - strcpy (sname, prefix); - - bfdsec = bfd_make_section_anyway_with_flags (abfd, sname, SEC_HAS_CONTENTS); - if (bfdsec == NULL) - return -1; - - bfdsec->vma = 0; - bfdsec->lma = 0; - bfdsec->size = command->len - 8; - bfdsec->filepos = command->offset + 8; - bfdsec->alignment_power = 0; - - cmd->section = bfdsec; - return 0; } diff --git a/bfd/mach-o.h b/bfd/mach-o.h index a597142..62f7709 100644 --- a/bfd/mach-o.h +++ b/bfd/mach-o.h @@ -751,7 +751,6 @@ bfd_mach_o_prebound_dylib_command; typedef struct bfd_mach_o_uuid_command { unsigned char uuid[16]; - asection *section; } bfd_mach_o_uuid_command; |