mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
In struct _SegInfo, rename field 'offset' to 'text_bias'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6507
This commit is contained in:
parent
00c15317cc
commit
1b7dd32e8f
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user