* 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
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
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-27 19:11 ` Ralf Baechle
1 sibling, 1 reply; 10+ messages in thread
From: Maciej W. Rozycki @ 2001-01-27 8:01 UTC (permalink / raw)
To: Justin Carlson; +Cc: linux-mips
On Fri, 26 Jan 2001, Justin Carlson wrote:
> 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?
Get gdb 5.0 from my site, at 'ftp://ftp.ds2.pg.gda.pl/pub/macro/'.
I've contributed all patches I've written myself. Unfortunately, most of
the code needed for gdb 5.0 to run on MIPS was taken from the 4.x CVS at
oss.sgi.com. As such it is required all authors of patches have to have
their copyright assigned to FSF before committing them to the gdb CVS.
I've asked people to resolve ownership of the code here some time ago,
but it seems nobody is really interested in getting this code into
official gdb, sigh...
> 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.
It's not that recent, actually. What's the problem with this? I can't
see any on mipsel-linux here.
> 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.
Not sure about this -- there are comments on it in glibc in
sysdeps/mips/dl-machine.h.
> 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.
Does it? Please provide more details. All of my system (linux 2.4.0,
glibc 2.2.1) is dynamically linked and it works fine.
> binutils we're using is from CVS as of about Dec 17th. Glibc is also a
> snapshot from about the same time.
Glibc should be fine as is although you might consider getting the 2.2.1
release. You may try to check if patches from my binutils package (also
available at the mentioned site) solve certain or all of your problems.
The patches have been proposed for an inclusion in the upcoming binutils
2.11 release -- I hope they will finally get there.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
2001-01-27 8:01 ` Maciej W. Rozycki
@ 2001-01-27 19:01 ` Ralf Baechle
2001-01-28 11:55 ` Andreas Jaeger
2001-01-29 15:34 ` Maciej W. Rozycki
0 siblings, 2 replies; 10+ messages in thread
From: Ralf Baechle @ 2001-01-27 19:01 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Justin Carlson, linux-mips
On Sat, Jan 27, 2001 at 09:01:47AM +0100, Maciej W. Rozycki wrote:
> I've contributed all patches I've written myself. Unfortunately, most of
> the code needed for gdb 5.0 to run on MIPS was taken from the 4.x CVS at
> oss.sgi.com. As such it is required all authors of patches have to have
> their copyright assigned to FSF before committing them to the gdb CVS.
>
> I've asked people to resolve ownership of the code here some time ago,
> but it seems nobody is really interested in getting this code into
> official gdb, sigh...
The only people who have contributed amounts of code large enough for the
FSF to requires an assignment are David Miller (davem@redhat.com) and
myself. I've already signed an assignment with the FSF and I'm also sure
David has. I btw. cannot remember having seen any mail from you regarding
copyright assignments of GDB.
> > 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.
>
> Does it? Please provide more details. All of my system (linux 2.4.0,
> glibc 2.2.1) is dynamically linked and it works fine.
I don't know what you look at - ld.so fails to handle libraries which are
not linked to 0x5fffe000 ...
> > binutils we're using is from CVS as of about Dec 17th. Glibc is also a
> > snapshot from about the same time.
>
> Glibc should be fine as is although you might consider getting the 2.2.1
> release. You may try to check if patches from my binutils package (also
> available at the mentioned site) solve certain or all of your problems.
> The patches have been proposed for an inclusion in the upcoming binutils
> 2.11 release -- I hope they will finally get there.
Ulf?
Ralf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
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:11 ` Ralf Baechle
1 sibling, 0 replies; 10+ messages in thread
From: Ralf Baechle @ 2001-01-27 19:11 UTC (permalink / raw)
To: Justin Carlson; +Cc: linux-mips
On Fri, Jan 26, 2001 at 05:40:07PM -0800, Justin Carlson wrote:
> 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.
For obscure reasons which probably spell IRIX 5.x ELF compatibility ELF
shared objects except the dynamic linker itself are linked to this base
address.
> 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.
By default ld.so get loaded to 0xfb60000. Again this is an obscure IRIXism.
> 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.
Glibc 2.0 as of '96 already does this just as glibc 2.2 is supposed to.
You may look at the source in the srpm package of glibc 2.1.95 on oss which
definately handles this right.
Ralf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
2001-01-27 19:01 ` Ralf Baechle
@ 2001-01-28 11:55 ` Andreas Jaeger
2001-02-09 0:31 ` Kevin D. Kissell
2001-01-29 15:34 ` Maciej W. Rozycki
1 sibling, 1 reply; 10+ messages in thread
From: Andreas Jaeger @ 2001-01-28 11:55 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Maciej W. Rozycki, Justin Carlson, linux-mips
Ralf Baechle <ralf@oss.sgi.com> writes:
> On Sat, Jan 27, 2001 at 09:01:47AM +0100, Maciej W. Rozycki wrote:
>
> > I've contributed all patches I've written myself. Unfortunately, most of
> > the code needed for gdb 5.0 to run on MIPS was taken from the 4.x CVS at
> > oss.sgi.com. As such it is required all authors of patches have to have
> > their copyright assigned to FSF before committing them to the gdb CVS.
> >
> > I've asked people to resolve ownership of the code here some time ago,
> > but it seems nobody is really interested in getting this code into
> > official gdb, sigh...
>
> The only people who have contributed amounts of code large enough for the
> FSF to requires an assignment are David Miller (davem@redhat.com) and
> myself. I've already signed an assignment with the FSF and I'm also sure
> David has. I btw. cannot remember having seen any mail from you regarding
> copyright assignments of GDB.
David has only disclaimers for Binutils and GCC but not for GDB in the
FSF list.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
2001-01-27 19:01 ` Ralf Baechle
2001-01-28 11:55 ` Andreas Jaeger
@ 2001-01-29 15:34 ` Maciej W. Rozycki
1 sibling, 0 replies; 10+ messages in thread
From: Maciej W. Rozycki @ 2001-01-29 15:34 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Justin Carlson, linux-mips
On Sat, 27 Jan 2001, Ralf Baechle wrote:
> The only people who have contributed amounts of code large enough for the
> FSF to requires an assignment are David Miller (davem@redhat.com) and
> myself. I've already signed an assignment with the FSF and I'm also sure
Ok, I'll dig out the patch and contact all interested parties again.
> David has. I btw. cannot remember having seen any mail from you regarding
> copyright assignments of GDB.
It was back in July, 2000, so it a long time ago...
> > Does it? Please provide more details. All of my system (linux 2.4.0,
> > glibc 2.2.1) is dynamically linked and it works fine.
>
> I don't know what you look at - ld.so fails to handle libraries which are
> not linked to 0x5fffe000 ...
Does it? I admit I haven't checked it specifically. It needs to be
fixed if so.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
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
0 siblings, 2 replies; 10+ messages in thread
From: Kevin D. Kissell @ 2001-02-09 0:31 UTC (permalink / raw)
To: Ralf Baechle, Andreas Jaeger
Cc: Maciej W. Rozycki, Justin Carlson, linux-mips
> > The only people who have contributed amounts of code large enough for
the
> > FSF to requires an assignment are David Miller (davem@redhat.com) and
> > myself. I've already signed an assignment with the FSF and I'm also
sure
> > David has. I btw. cannot remember having seen any mail from you
regarding
> > copyright assignments of GDB.
>
> David has only disclaimers for Binutils and GCC but not for GDB in the
> FSF list.
I asked MIPS' contacts with Red Hat to look into this, and
there was, apparently, some confusion as to whether GDB
was covered under a blanket assignment. It's being taken
care of.
Kevin K.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
2001-02-09 0:31 ` Kevin D. Kissell
@ 2001-02-09 0:31 ` Kevin D. Kissell
2001-02-09 2:00 ` Ralf Baechle
1 sibling, 0 replies; 10+ messages in thread
From: Kevin D. Kissell @ 2001-02-09 0:31 UTC (permalink / raw)
To: Ralf Baechle, Andreas Jaeger
Cc: Maciej W. Rozycki, Justin Carlson, linux-mips
> > The only people who have contributed amounts of code large enough for
the
> > FSF to requires an assignment are David Miller (davem@redhat.com) and
> > myself. I've already signed an assignment with the FSF and I'm also
sure
> > David has. I btw. cannot remember having seen any mail from you
regarding
> > copyright assignments of GDB.
>
> David has only disclaimers for Binutils and GCC but not for GDB in the
> FSF list.
I asked MIPS' contacts with Red Hat to look into this, and
there was, apparently, some confusion as to whether GDB
was covered under a blanket assignment. It's being taken
care of.
Kevin K.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
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
1 sibling, 1 reply; 10+ messages in thread
From: Ralf Baechle @ 2001-02-09 2:00 UTC (permalink / raw)
To: Kevin D. Kissell
Cc: Andreas Jaeger, Maciej W. Rozycki, Justin Carlson, linux-mips
On Fri, Feb 09, 2001 at 01:31:12AM +0100, Kevin D. Kissell wrote:
> > > The only people who have contributed amounts of code large enough for
> > > the FSF to requires an assignment are David Miller (davem@redhat.com)
> > > and myself. I've already signed an assignment with the FSF and I'm
> > > also sure David has. I btw. cannot remember having seen any mail from
> > > you regarding copyright assignments of GDB.
> >
> > David has only disclaimers for Binutils and GCC but not for GDB in the
> > FSF list.
>
> I asked MIPS' contacts with Red Hat to look into this, and
> there was, apparently, some confusion as to whether GDB
> was covered under a blanket assignment. It's being taken
> care of.
This code was written in '96 during David's time as a SGI intern, so that's
probably not covered.
Ralf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: GDB 5 for mips-linux/Shared library loading with new binutils/glibc
2001-02-09 2:00 ` Ralf Baechle
@ 2001-02-09 2:00 ` Ralf Baechle
0 siblings, 0 replies; 10+ messages in thread
From: Ralf Baechle @ 2001-02-09 2:00 UTC (permalink / raw)
To: Kevin D. Kissell
Cc: Andreas Jaeger, Maciej W. Rozycki, Justin Carlson, linux-mips
On Fri, Feb 09, 2001 at 01:31:12AM +0100, Kevin D. Kissell wrote:
> > > The only people who have contributed amounts of code large enough for
> > > the FSF to requires an assignment are David Miller (davem@redhat.com)
> > > and myself. I've already signed an assignment with the FSF and I'm
> > > also sure David has. I btw. cannot remember having seen any mail from
> > > you regarding copyright assignments of GDB.
> >
> > David has only disclaimers for Binutils and GCC but not for GDB in the
> > FSF list.
>
> I asked MIPS' contacts with Red Hat to look into this, and
> there was, apparently, some confusion as to whether GDB
> was covered under a blanket assignment. It's being taken
> care of.
This code was written in '96 during David's time as a SGI intern, so that's
probably not covered.
Ralf
^ 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