aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-31 06:52:33 -0700
committerTom Tromey <tromey@redhat.com>2014-01-15 11:02:23 -0700
commit53eddfa6069cc556a22d388fbde0cc83beb91bfb (patch)
tree86c4d38a4e0d7370216b90cb711471d1ce45ce7b /gdb/objfiles.h
parentd56e56aaa79d7d65e9d969a7bf6795f2612d34ca (diff)
downloadgdb-53eddfa6069cc556a22d388fbde0cc83beb91bfb.zip
gdb-53eddfa6069cc556a22d388fbde0cc83beb91bfb.tar.gz
gdb-53eddfa6069cc556a22d388fbde0cc83beb91bfb.tar.bz2
relocate the entry point address when used
This changes the entry point to be unrelocated in the objfile, and instead applies the relocation when it is used. 2014-01-15 Tom Tromey <tromey@redhat.com> * objfiles.c (entry_point_address_query): Relocate entry point address. (objfile_relocate1): Do not relocate entry point address. * objfiles.h (struct entry_info) <entry_point>: Update comment. <the_bfd_section_index>: New field. * symfile.c (init_entry_point_info): Find the entry point's section.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index c2b6177..620d7e8 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -101,9 +101,12 @@ struct objfile_data;
struct entry_info
{
- /* The relocated value we should use for this objfile entry point. */
+ /* The unrelocated value we should use for this objfile entry point. */
CORE_ADDR entry_point;
+ /* The index of the section in which the entry point appears. */
+ int the_bfd_section_index;
+
/* Set to 1 iff ENTRY_POINT contains a valid value. */
unsigned entry_point_p : 1;
};