This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: Linux/ppc failure


On Wed, Oct 02, 2002 at 10:54:34PM -0700, Richard Henderson wrote:
> On Thu, Oct 03, 2002 at 12:33:15AM -0400, Daniel Jacobowitz wrote:
> > I don't think that's true at all!  In the case of symbol overrides, we
> > have no guarantee that the items being overridden all have the same
> > type, right?
> 
> Yes we do.  Or, rather, enough of one as to make no difference.
> The function _here_ is going to treat the data as if its that
> type, no matter what it really is.  So gdb can just as well print
> the variable as the local function is going to view it.
> 
> Anyway, it happens with dynbss even for well-behaved programs.

But I don't think the .rela.debug_info section can be SHF_ALLOC, thus
gdb will have to duplicate symbol resolution from ld.so anyway.
And when it does, I think it is preferable to always use debug info
from the module defining the symbol rather than the one refering to it.

Plus, on REL arches this is incompatible change, since
previously .debug_info section contained address of some variable/function
in the current module while with .rel.debug_info it will have to contain
addend (ie. usually 0).

	Jakub


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