This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Fix mst_solib_trampoline symbol sections for PLT stubs
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: drow at false dot org (Daniel Jacobowitz)
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 31 Oct 2007 15:29:53 +0100 (CET)
- Subject: Re: [rfc] Fix mst_solib_trampoline symbol sections for PLT stubs
Daniel Jacobowitz:
> Yes. But if the address of the function is not taken somewhere in the
> executable, then the address of the undefined symbol will generally be
> left at zero. That should be true most of the time. So while I don't
> see anything wrong with your approach here, I'm surprised it fixed the
> testsuite failures; why do they have non-zero addresses? If we're
> taking their addresses in all cases, we need some new tests.
I think this is because there are function calls from the main
executable to those functions, and the main executable is not
compiled with -fPIC. I understand those references will also
cause the undefined symbol to carry the address of the main
PLT call stub ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com