This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA] solib-svr4.c patch for dynamic executables
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: [PATCH RFA] solib-svr4.c patch for dynamic executables
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 07 Nov 2000 14:29:21 -0800
- Cc: Kevin Buettner <kevinb at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com
- References: <1001104012305.ZM6714@ocotillo.lan><np1ywna3f4.fsf@zwingli.cygnus.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Jim Blandy <jimb@cygnus.com> writes:
> We should look at the ABI to see what rules `exec' follows to decide
> whether to relocate the main executable, and then make GDB use the
> same rules.
The rule is: binaries with e_type == ET_DYN have no fixed load address.
Don't know how to get this out of gdb data structures.
Note that this will include all DSOs but this is fine: if somebody
executes a DSO which is not prepared to do this it will crash. Just
what you expect.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------