This is the mail archive of the gdb@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: Does gdb understand copy relocation?


On Sun, Aug 07, 2005 at 08:12:16AM -0700, H. J. Lu wrote:
> On targets with copy relocation, when executable references a data
> symbol defined in DSO, a copy relocation will be used to copy the
> definition from DSO to executable and the copy in executable will be
> used by the process. But gdb I am using insists using the one in DSO.
> Is there a way to teach gdb about copy relocation?

GDB does not know anything about symbol resolution at all.  It also
does not use the relocations for much of anything, just the symbol
tables.

I would have expected it to prefer the copy in the executable.  I'm a
bit surprised if it didn't.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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