|
From: <sv...@va...> - 2008-05-21 14:27:39
|
Author: bart
Date: 2008-05-21 15:27:42 +0100 (Wed, 21 May 2008)
New Revision: 8113
Log:
VG_(seginfo_sect_kind)() now also recognizes .got.plt sections.
Modified:
branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c
branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h
Modified: branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c 2008-05-21 14:17:42 UTC (rev 8112)
+++ branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c 2008-05-21 14:27:42 UTC (rev 8113)
@@ -2321,6 +2321,12 @@
res = Vg_SectGOT;
break;
}
+ if (di->gotplt_present
+ && di->gotplt_size > 0
+ && a >= di->gotplt_avma && a < di->gotplt_avma + di->gotplt_size) {
+ res = Vg_SectGOTPLT;
+ break;
+ }
if (di->opd_present
&& di->opd_size > 0
&& a >= di->opd_avma && a < di->opd_avma + di->opd_size) {
Modified: branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h
===================================================================
--- branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h 2008-05-21 14:17:42 UTC (rev 8112)
+++ branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h 2008-05-21 14:27:42 UTC (rev 8113)
@@ -155,6 +155,7 @@
Vg_SectBSS,
Vg_SectGOT,
Vg_SectPLT,
+ Vg_SectGOTPLT,
Vg_SectOPD
}
VgSectKind;
|