Linux MIPS Architecture development
 help / color / mirror / Atom feed
* GDB 5 for mips-linux/Shared library loading with new binutils/glibc
@ 2001-01-27  1:40 Justin Carlson
  2001-01-27  8:01 ` Maciej W. Rozycki
  2001-01-27 19:11 ` Ralf Baechle
  0 siblings, 2 replies; 10+ messages in thread
From: Justin Carlson @ 2001-01-27  1:40 UTC (permalink / raw)
  To: linux-mips

Working with some pretty bleeding edge GNU tools, here, and there doesn't seem
to be any support for mips-linux in GDB 5.  Has anyone else run across this,
and, if so, are there patches available somewhere?

Also, I've run into a problem with ld.so from glibc-2.2 on mips32-linux.  After
some hunting, I found that the templates in elf32bsmip.sh for gnu ld have
recently changed to support SHLIB_TEXT_START_ADDR as a (non-zero) base address
for shared library loading.  SHLIB_TEXT_START_ADDR defaults to 0x5ffe0000 in
the current sources.

I'm curious if anyone knows the rationale for these changes.  Best conjecture
I've heard is that it allows ld.so to not have to relocate itself, as it will
load by default to the high address.  

However, ld.so seems to know nothing about relocating shared library with a
non-zero shared library base address, which causes dynamically linked stuff to
crash spectacularly.  

I think fixing ld.so won't be too difficult, but I'm really wanting to find out
why these changes were made.  And whether I'm reinventing some wheels by fixing
ld.so to cope with the new binutils stuff.

Anyone tread the ground before?

binutils we're using is from CVS as of about Dec 17th.  Glibc is also a
snapshot from about the same time.

-Justin

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

end of thread, other threads:[~2001-02-09  2:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-27  1:40 GDB 5 for mips-linux/Shared library loading with new binutils/glibc Justin Carlson
2001-01-27  8:01 ` Maciej W. Rozycki
2001-01-27 19:01   ` Ralf Baechle
2001-01-28 11:55     ` Andreas Jaeger
2001-02-09  0:31       ` Kevin D. Kissell
2001-02-09  0:31         ` Kevin D. Kissell
2001-02-09  2:00         ` Ralf Baechle
2001-02-09  2:00           ` Ralf Baechle
2001-01-29 15:34     ` Maciej W. Rozycki
2001-01-27 19:11 ` Ralf Baechle

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