This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]