|
From: <sv...@va...> - 2010-10-18 13:04:24
|
Author: tom
Date: 2010-10-18 14:04:13 +0100 (Mon, 18 Oct 2010)
New Revision: 11449
Log:
Don't look for build-id notes if NT_GNU_BUILD_ID is not defined.
Modified:
trunk/coregrind/m_debuginfo/readelf.c
Modified: trunk/coregrind/m_debuginfo/readelf.c
===================================================================
--- trunk/coregrind/m_debuginfo/readelf.c 2010-10-18 12:38:22 UTC (rev 11448)
+++ trunk/coregrind/m_debuginfo/readelf.c 2010-10-18 13:04:13 UTC (rev 11449)
@@ -867,6 +867,7 @@
Char* buildid = NULL;
ElfXX_Ehdr* ehdr = (ElfXX_Ehdr*)image;
+#ifdef NT_GNU_BUILD_ID
if (n_image >= sizeof(ElfXX_Ehdr) &&
ML_(is_elf_object_file)(ehdr, n_image)) {
Word i;
@@ -899,6 +900,7 @@
}
}
}
+#endif
return buildid;
}
|