+2016-09-14  Bhushan Attarde  <bhushan.attarde@imgtec.com>
+
+       * format.c (struct bfd_preserve): New "build_id" field.
+       (bfd_preserve_save): Save "build_id".
+       (bfd_preserve_restore): Restore "build_id".
+
 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/20550
 
   struct bfd_section *section_last;
   unsigned int section_count;
   struct bfd_hash_table section_htab;
+  const struct bfd_build_id *build_id;
 };
 
 /* When testing an object for compatibility with a particular target
   preserve->section_count = abfd->section_count;
   preserve->section_htab = abfd->section_htab;
   preserve->marker = bfd_alloc (abfd, 1);
+  preserve->build_id = abfd->build_id;
   if (preserve->marker == NULL)
     return FALSE;
 
   abfd->sections = preserve->sections;
   abfd->section_last = preserve->section_last;
   abfd->section_count = preserve->section_count;
+  abfd->build_id = preserve->build_id;
 
   /* bfd_release frees all memory more recently bfd_alloc'd than
      its arg, as well as its arg.  */