|
From: <sv...@va...> - 2007-01-11 20:11:58
|
Author: sewardj
Date: 2007-01-11 20:11:51 +0000 (Thu, 11 Jan 2007)
New Revision: 6507
Log:
In struct _SegInfo, rename field 'offset' to 'text_bias'.
Modified:
trunk/coregrind/m_debuginfo/debuginfo.c
trunk/coregrind/m_debuginfo/priv_storage.h
trunk/coregrind/m_debuginfo/readelf.c
Modified: trunk/coregrind/m_debuginfo/debuginfo.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/debuginfo.c 2007-01-11 19:42:11 UTC (rev =
6506)
+++ trunk/coregrind/m_debuginfo/debuginfo.c 2007-01-11 20:11:51 UTC (rev =
6507)
@@ -1104,7 +1104,7 @@
=20
ULong VG_(seginfo_sym_offset)(const SegInfo* si)
{
- return si->offset;
+ return si->text_bias;
}
=20
VgSectKind VG_(seginfo_sect_kind)(Addr a)
Modified: trunk/coregrind/m_debuginfo/priv_storage.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/priv_storage.h 2007-01-11 19:42:11 UTC (r=
ev 6506)
+++ trunk/coregrind/m_debuginfo/priv_storage.h 2007-01-11 20:11:51 UTC (r=
ev 6507)
@@ -146,7 +146,7 @@
UInt size;
UChar* filename; /* in mallocville */
UChar* memname; /* malloc'd. AIX5 only: .a member name */
- OffT foffset;
+ OffT foffset; /* file offset for mapped text section - UNUSED */
UChar* soname;
=20
/* An expandable array of symbols. */
@@ -174,11 +174,12 @@
UChar strtab[SEGINFO_STRCHUNKSIZE];
} *strchunks;
=20
- /* 'offset' is what needs to be added to an address in the address
- space of the library as stored on disk (which is not 0-based for
- executables or prelinked libraries) to get an address in memory
- for the object loaded at 'start' */
- OffT offset;
+ /* 'text_bias' is what needs to be added to an address in the
+ address space of the library as stored on disk [a so-called
+ stated VMA] (which is not 0-based for executables or prelinked
+ libraries) to get an address in memory for the object loaded at
+ 'text_start_avma'. At least for text symbols. */
+ OffT text_bias;
=20
/* Bounds of data, BSS, PLT, GOT and OPD (for ppc64-linux) so that
tools can see what section an address is in. In the running
Modified: trunk/coregrind/m_debuginfo/readelf.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/readelf.c 2007-01-11 19:42:11 UTC (rev 65=
06)
+++ trunk/coregrind/m_debuginfo/readelf.c 2007-01-11 20:11:51 UTC (rev 65=
07)
@@ -979,7 +979,7 @@
}
}
=20
- si->offset =3D offset_oimage;
+ si->text_bias =3D offset_oimage;
=20
/* If, after looking at all the program headers, we still didn't=20
find a soname, add a fake one. */
|