]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2009-12-15 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Tue, 15 Dec 2009 09:50:15 +0000 (09:50 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 15 Dec 2009 09:50:15 +0000 (09:50 +0000)
        * 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.

bfd/ChangeLog
bfd/mach-o.c
bfd/mach-o.h

index fdaf57e0cf08654d8a881266ad9e257b766a401c..e1105bb0057c96afe4e718222734f0817929dadb 100644 (file)
@@ -1,3 +1,9 @@
+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.
index ab4ee742b6b6e9fe591b7d9792c44867e33f8099..ae86c4e77a89ee38082155bf4a5c55fb68f255e5 100644 (file)
@@ -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;
 }
 
index a59714209984acc8a6abefad4c79013ee773cc7c..62f7709fc7d3765403a93e1cd3ab234d6668363d 100644 (file)
@@ -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;