Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* PIE question
@ 2010-03-07  0:53 Daniel Jacobowitz
  2010-03-08 21:37 ` Jan Kratochvil
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2010-03-07  0:53 UTC (permalink / raw)
  To: gdb; +Cc: Jan Kratochvil

Jan, could you explain a little how the situation in this comment can
happen?


static void
svr4_relocate_main_executable (void)
{
  CORE_ADDR displacement = svr4_exec_displacement ();

  /* Even if DISPLACEMENT is 0 still try to relocate it as this is a new
     difference of in-memory vs. in-file addresses and we could already
     relocate the executable at this function to improper address before.  */


I came across this because our local ARM uClinux incorrectly links in
solib-svr4.c.  The remote target sends qOffsets, uses the result to
relocate the objfile, and then this code overrides that.  I'll fix
the target.  But if there was any circumstance where a solib-svr4.c
target could also send qOffsets (I think some KGDB ports do this?)
then this will undo it.

I don't think this is related to our other discussion about executable
relocation; I haven't forgotten, I'll get back to you as soon as I can.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-10 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-07  0:53 PIE question Daniel Jacobowitz
2010-03-08 21:37 ` Jan Kratochvil
2010-03-08 21:58   ` Daniel Jacobowitz
2010-03-10 21:00     ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox