This is the mail archive of the gdb-prs@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]

[Bug symtab/9807] _SDA_BASE_+_SDA2_BASE_ not valid for symbols resolving


------- Additional Comments From jan dot kratochvil at redhat dot com  2009-02-02 19:18 -------
(In reply to comment #1)
> I don't understand - what is GDB doing wrong?

>From the user POV the wrong point is: "but contains no code"
>From the GDB POV during addr->line resolving it will falsely find _SDA_BASE_
instead of some real main() symbol and fails to resolve the line number from it.

> Is the _SDA_BASE_ that is causing trouble the one in ld.so.1 or in the
> application?

In ld.so.1 if it gets "randomly" prelinked at inappropriate address to clash
with the (fixed) application address space.

On 32-bit (ppc) unfortunately `prelink -R' in fact is not random so on some
systems this unfortunate clash may occur permanently breaking GDB a bit.

> We should probably ignore all section-relative symbols which are
> outside the containing section.

FYI elfutils has _SDA{,2}_BASE_ exception in its elflint so assuming for GDB
more some `set complaints' style complaint.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9807

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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