This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Regression on prelinked-sepdebug-shlibs
On Wed, Jan 06, 2010 at 07:05:10PM +0100, Jan Kratochvil wrote:
> On Wed, 06 Jan 2010 17:38:55 +0100, Tristan Gingold wrote:
> > I think this is not correct: the separate debug file may have one section at
> > zero while the main may not. In the above code, we do not consider wether
> > an offset is used.
> >
> > I am not sure that this can happen with ELF however.
Sorry, I don't quite understand this.
> This has_section_at_zero feature is intended for embedded targets. I only
> know has_section_at_zero can never happen for cases I am aware of.
>
> IMHO embedded targets do not use the file-vs-memory offsets but not sure.
> Also the embedded targets probably do not use .linkonce/COMDAT - this is why
> this has_section_at_zero differentiator could work.
An embedded program can use either of these things. The
linkonce/comdat issue is a constant problem, but this was the best
available heuristic.
--
Daniel Jacobowitz
CodeSourcery