relocate the entry point address when used
authorTom Tromey <tromey@redhat.com>
Tue, 31 Dec 2013 13:52:33 +0000 (06:52 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Jan 2014 18:02:23 +0000 (11:02 -0700)
commit53eddfa6069cc556a22d388fbde0cc83beb91bfb
tree86c4d38a4e0d7370216b90cb711471d1ce45ce7b
parentd56e56aaa79d7d65e9d969a7bf6795f2612d34ca
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.
gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c