Don't include the .note.gnu.build-id ELF note in the digest as it's altered by debugedit.
Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
(cherry picked from commit
99a2f2fb5f9146139b71d3a7165c42d43ab0d978)
Signed-off-by: Greg Marsden <greg.marsden@oracle.com>
continue;
}
+ /* ignore gcc's build ID section as it seems to get modified by
+ * the build process */
+ if (strcmp(sh_name, ".note.gnu.build-id") == 0)
+ continue;
+
/* include allocatable loadable sections */
if (sh_type != SHT_NOBITS && sh_flags & SHF_ALLOC)
goto include_section;
continue;
}
+ /* ignore gcc's build ID section as it seems to get modified by
+ * the build process */
+ if (strcmp(sh_name, ".note.gnu.build-id") == 0)
+ continue;
+
/* include allocatable loadable sections */
if (sh_type != SHT_NOBITS && sh_flags & SHF_ALLOC)
goto include_section;
continue;
}
+ /* ignore gcc's build ID section as it seems to get modified by
+ * the build process */
+ if (strcmp(sh_name, ".note.gnu.build-id") == 0)
+ continue;
+
/* include allocatable loadable sections */
if (sh_type != SHT_NOBITS && sh_flags & SHF_ALLOC)
goto include_section;