In struct _SegInfo, rename field 'offset' to 'text_bias'.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6507
This commit is contained in:
Julian Seward 2007-01-11 20:11:51 +00:00
parent 00c15317cc
commit 1b7dd32e8f
3 changed files with 9 additions and 8 deletions

View File

@ -1104,7 +1104,7 @@ const UChar* VG_(seginfo_filename)(const SegInfo* si)
ULong VG_(seginfo_sym_offset)(const SegInfo* si)
{
return si->offset;
return si->text_bias;
}
VgSectKind VG_(seginfo_sect_kind)(Addr a)

View File

@ -146,7 +146,7 @@ struct _SegInfo {
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;
/* An expandable array of symbols. */
@ -174,11 +174,12 @@ struct _SegInfo {
UChar strtab[SEGINFO_STRCHUNKSIZE];
} *strchunks;
/* '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;
/* 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

View File

@ -979,7 +979,7 @@ Bool ML_(read_elf_debug_info) ( struct _SegInfo* si )
}
}
si->offset = offset_oimage;
si->text_bias = offset_oimage;
/* If, after looking at all the program headers, we still didn't
find a soname, add a fake one. */