* glibc 2.2 on MIPS
@ 2001-01-04 20:42 Christoph Martin
2001-01-04 21:34 ` Maciej W. Rozycki
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Christoph Martin @ 2001-01-04 20:42 UTC (permalink / raw)
To: ralf; +Cc: Christoph.Martin, linux-mips, linux-mips, debian-mips,
Andreas Jaeger
Hi Ralf,
On Thu, 12 Oct 2000 04:04:44 +0200, Ralf Baechle wrote:
> On Thu, Oct 12, 2000 at 12:24:21AM +0200, Florian Lohoff wrote:
> > We are trying :) I am currently basing all my Debian-mips(el) things
> > on glibc 2.0.6. It is the only stable solution right now. I am experimenting
> > with the glibc 2.1.94-3 debian source package which i managed to get
> > compiled with unmodified cvs binutils and gcc + the gcse patch.
> >
> > Ralf reported bugs in the ld where he send me a patch. With that patch
> > i get a "Bus Error" from the ld.so within the glibc build.
> There patch is ok; you get those bus errors because there are bugs in
> both ld and binutils that in most cases compensate each other. If you
> fix only one of them you get all sorts of funnies ...
I just tried to build glibc-2.2 (CVS-2000-12-28) for debian-mips and
it still has the "Bus Error" problem. We are currently using binutils
2.10.1.0.2 and gcc 2.95.2 + CVS from 2.95 branch.
Can you please post both patches, so that we can verify which one is
missing in our build.
> Even with the fixes ld is not yet perfect - for example emacs and X still
> fail.
The gcc/binutils combination seams to work correctly as far as I can
see. I managed to compile xfree 4.0.2 linked agains 2.1.95-1.1. What
problems did you have with X?
Christoph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-01-04 20:42 glibc 2.2 on MIPS Christoph Martin
@ 2001-01-04 21:34 ` Maciej W. Rozycki
2001-02-01 9:27 ` Geert Uytterhoeven
2001-01-05 16:38 ` Nicu Popovici
2001-01-05 23:03 ` Nicu Popovici
2 siblings, 1 reply; 11+ messages in thread
From: Maciej W. Rozycki @ 2001-01-04 21:34 UTC (permalink / raw)
To: Christoph Martin
Cc: ralf, Christoph.Martin, linux-mips, linux-mips, debian-mips,
Andreas Jaeger
On Thu, 4 Jan 2001, Christoph Martin wrote:
> I just tried to build glibc-2.2 (CVS-2000-12-28) for debian-mips and
> it still has the "Bus Error" problem. We are currently using binutils
> 2.10.1.0.2 and gcc 2.95.2 + CVS from 2.95 branch.
>
> Can you please post both patches, so that we can verify which one is
> missing in our build.
The 2.2 release of glibc needs no patches. The current CVS version is
even better as a few unrelated fixes has been applied meanwhile.
For binutils 2.10.1 the following fix makes binaries be built as ld.so
expects. Other fixes might be needed for 2.10.1 to work at all -- they
are all available from:
ftp://ftp.ds2.pg.gda.pl/pub/macro/SRPMS/binutils-2.10.1-3.src.rpm (or use
a mirror at: ftp://ftp.rfc822.org/pub/mirror/ftp.ds2.pg.gda.pl/...).
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
binutils-2.10-mips-dyn-addend.patch
diff -up --recursive --new-file binutils-2.10.macro/bfd/elf32-mips.c binutils-2.10/bfd/elf32-mips.c
--- binutils-2.10.macro/bfd/elf32-mips.c Sat Mar 11 02:23:10 2000
+++ binutils-2.10/bfd/elf32-mips.c Sat Oct 28 17:19:52 2000
@@ -5675,15 +5675,16 @@ mips_elf_create_dynamic_relocation (outp
/* The relocation we're building is section-relative.
Therefore, the original addend must be adjusted by the
section offset. */
- *addendp += symbol - sec->output_section->vma;
+ *addendp += section_offset;
/* Now, the relocation is just against the section. */
symbol = sec->output_section->vma;
}
- /* If the relocation was previously an absolute relocation, we
- must adjust it by the value we give it in the dynamic symbol
- table. */
- if (r_type != R_MIPS_REL32)
+ /* If the relocation was previously an absolute relocation and
+ this symbol will not be referred to by the relocation, we must
+ adjust it by the value we give it in the dynamic symbol table.
+ Otherwise leave the job up to the dynamic linker. */
+ if (!indx && r_type != R_MIPS_REL32)
*addendp += symbol;
/* The relocation is always an REL32 relocation because we don't
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-01-05 16:38 ` Nicu Popovici
@ 2001-01-05 10:29 ` Christoph Martin
0 siblings, 0 replies; 11+ messages in thread
From: Christoph Martin @ 2001-01-05 10:29 UTC (permalink / raw)
To: Nicu Popovici; +Cc: Christoph Martin, linux-mips, linux-mips, debian-mips
Nicu Popovici writes:
> Hello all,
>
> My question is somehow related on the problems showed in this email. Sorry if this
> will bother you.
> I am trying to setup a cross toolchain for mips and I have to use binutils 2.10
> and gcc 2.95.2 and glibc2.1.3. Currently I am trying to setup binutils 2.10 with
> egcs1.0.3a and with glibc.2.0.6 . Do you have any patches for binutils 2.10 or for
> gcc2.95.2 for mips ? If you have and if you have some ideeas please tell me ..
>
Look for the patches in the respective archives on:
ftp.ds2.pg.gda.pl/pub/macro/SRPMS/
Christoph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-01-04 20:42 glibc 2.2 on MIPS Christoph Martin
2001-01-04 21:34 ` Maciej W. Rozycki
@ 2001-01-05 16:38 ` Nicu Popovici
2001-01-05 10:29 ` Christoph Martin
2001-01-05 23:03 ` Nicu Popovici
2 siblings, 1 reply; 11+ messages in thread
From: Nicu Popovici @ 2001-01-05 16:38 UTC (permalink / raw)
To: Christoph Martin
Cc: ralf, Christoph.Martin, linux-mips, linux-mips, debian-mips,
Andreas Jaeger
[-- Attachment #1: Type: text/plain, Size: 1855 bytes --]
Hello all,
My question is somehow related on the problems showed in this email. Sorry if this
will bother you.
I am trying to setup a cross toolchain for mips and I have to use binutils 2.10
and gcc 2.95.2 and glibc2.1.3. Currently I am trying to setup binutils 2.10 with
egcs1.0.3a and with glibc.2.0.6 . Do you have any patches for binutils 2.10 or for
gcc2.95.2 for mips ? If you have and if you have some ideeas please tell me ..
Thank You
Nicu
Christoph Martin wrote:
> Hi Ralf,
>
> On Thu, 12 Oct 2000 04:04:44 +0200, Ralf Baechle wrote:
>
> > On Thu, Oct 12, 2000 at 12:24:21AM +0200, Florian Lohoff wrote:
>
> > > We are trying :) I am currently basing all my Debian-mips(el) things
> > > on glibc 2.0.6. It is the only stable solution right now. I am experimenting
> > > with the glibc 2.1.94-3 debian source package which i managed to get
> > > compiled with unmodified cvs binutils and gcc + the gcse patch.
> > >
> > > Ralf reported bugs in the ld where he send me a patch. With that patch
> > > i get a "Bus Error" from the ld.so within the glibc build.
>
> > There patch is ok; you get those bus errors because there are bugs in
> > both ld and binutils that in most cases compensate each other. If you
> > fix only one of them you get all sorts of funnies ...
>
> I just tried to build glibc-2.2 (CVS-2000-12-28) for debian-mips and
> it still has the "Bus Error" problem. We are currently using binutils
> 2.10.1.0.2 and gcc 2.95.2 + CVS from 2.95 branch.
>
> Can you please post both patches, so that we can verify which one is
> missing in our build.
>
> > Even with the fixes ld is not yet perfect - for example emacs and X still
> > fail.
>
> The gcc/binutils combination seams to work correctly as far as I can
> see. I managed to compile xfree 4.0.2 linked agains 2.1.95-1.1. What
> problems did you have with X?
>
> Christoph
[-- Attachment #2: Card for Nicu Popovici --]
[-- Type: text/x-vcard, Size: 259 bytes --]
begin:vcard
n:POPOVICI;Nicolae Octavian
tel;cell:+40 93 605020
x-mozilla-html:FALSE
org:SC Silicon Service SRL;Software
adr:;;;;;;
version:2.1
email;internet:octavp@isratech.ro
title:Software engineer
x-mozilla-cpt:;0
fn:Nicolae Octavian POPOVICI
end:vcard
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-01-05 23:03 ` Nicu Popovici
@ 2001-01-05 21:10 ` Christoph Martin
0 siblings, 0 replies; 11+ messages in thread
From: Christoph Martin @ 2001-01-05 21:10 UTC (permalink / raw)
To: Nicu Popovici; +Cc: Christoph Martin, linux-mips, linux-mips, debian-mips
Nicu Popovici writes:
> Hello ,
>
> I am bothering you again.
> Related to gcc 2.95.2 --- it has any patches for porting to mips or not ? I mean ,
> where do I find the patches for gcc-2.95.2 for mips if there are some files. I saw
> that you said something like that "gcc 2.95.2 + CVS from 2.95 branch." What do you
> mean ?
"gcc 2.95.2 + CVS from 2.95 branch." is what debian has in its
gcc-2.95.2. The mips patches are - as I said - in the src.rpm's on
ftp.ds2.pg.gda.pl/pub/macro/SRPMS/
C
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-01-04 20:42 glibc 2.2 on MIPS Christoph Martin
2001-01-04 21:34 ` Maciej W. Rozycki
2001-01-05 16:38 ` Nicu Popovici
@ 2001-01-05 23:03 ` Nicu Popovici
2001-01-05 21:10 ` Christoph Martin
2 siblings, 1 reply; 11+ messages in thread
From: Nicu Popovici @ 2001-01-05 23:03 UTC (permalink / raw)
To: Christoph Martin
Cc: ralf, Christoph.Martin, linux-mips, linux-mips, debian-mips,
Andreas Jaeger
Hello ,
I am bothering you again.
Related to gcc 2.95.2 --- it has any patches for porting to mips or not ? I mean ,
where do I find the patches for gcc-2.95.2 for mips if there are some files. I saw
that you said something like that "gcc 2.95.2 + CVS from 2.95 branch." What do you
mean ?
Regards,
Nicu
Christoph Martin wrote:
> Hi Ralf,
>
> On Thu, 12 Oct 2000 04:04:44 +0200, Ralf Baechle wrote:
>
> > On Thu, Oct 12, 2000 at 12:24:21AM +0200, Florian Lohoff wrote:
>
> > > We are trying :) I am currently basing all my Debian-mips(el) things
> > > on glibc 2.0.6. It is the only stable solution right now. I am experimenting
> > > with the glibc 2.1.94-3 debian source package which i managed to get
> > > compiled with unmodified cvs binutils and gcc + the gcse patch.
> > >
> > > Ralf reported bugs in the ld where he send me a patch. With that patch
> > > i get a "Bus Error" from the ld.so within the glibc build.
>
> > There patch is ok; you get those bus errors because there are bugs in
> > both ld and binutils that in most cases compensate each other. If you
> > fix only one of them you get all sorts of funnies ...
>
> I just tried to build glibc-2.2 (CVS-2000-12-28) for debian-mips and
> it still has the "Bus Error" problem. We are currently using binutils
> 2.10.1.0.2 and gcc 2.95.2 + CVS from 2.95 branch.
>
> Can you please post both patches, so that we can verify which one is
> missing in our build.
>
> > Even with the fixes ld is not yet perfect - for example emacs and X still
> > fail.
>
> The gcc/binutils combination seams to work correctly as far as I can
> see. I managed to compile xfree 4.0.2 linked agains 2.1.95-1.1. What
> problems did you have with X?
>
> Christoph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-01-04 21:34 ` Maciej W. Rozycki
@ 2001-02-01 9:27 ` Geert Uytterhoeven
2001-02-01 12:38 ` Maciej W. Rozycki
0 siblings, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2001-02-01 9:27 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Linux/MIPS Development
On Thu, 4 Jan 2001, Maciej W. Rozycki wrote:
> For binutils 2.10.1 the following fix makes binaries be built as ld.so
> expects. Other fixes might be needed for 2.10.1 to work at all -- they
> are all available from:
> ftp://ftp.ds2.pg.gda.pl/pub/macro/SRPMS/binutils-2.10.1-3.src.rpm (or use
> a mirror at: ftp://ftp.rfc822.org/pub/mirror/ftp.ds2.pg.gda.pl/...).
I tried to compile mipsel-binutils using the sources/patches in
mipsel-linux-binutils-2.10.1-3.src.rpm and got the following result:
| gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I./../include
| -I./../intl -I../intl -g -O2 -W -Wall -c section.c -o section.o
| section.c:571: warning: initialization makes integer from pointer without a cast
| section.c:571: warning: initialization from incompatible pointer type
| section.c:571: warning: initialization from incompatible pointer type
| section.c:571: warning: excess elements in struct initializer
| section.c:571: warning: (near initialization for `bfd_com_section')
| section.c:572: warning: initialization makes integer from pointer without a cast
| section.c:572: warning: initialization from incompatible pointer type
| section.c:572: warning: initialization from incompatible pointer type
| section.c:572: warning: excess elements in struct initializer
| section.c:572: warning: (near initialization for `bfd_und_section')
| section.c:573: warning: initialization makes integer from pointer without a cast
| section.c:573: warning: initialization from incompatible pointer type
| section.c:573: warning: initialization from incompatible pointer type
| section.c:573: warning: excess elements in struct initializer
| section.c:573: warning: (near initialization for `bfd_abs_section')
| section.c:574: warning: initialization makes integer from pointer without a cast
| section.c:574: warning: initialization from incompatible pointer type
| section.c:574: warning: initialization from incompatible pointer type
| section.c:574: warning: excess elements in struct initializer
| section.c:574: warning: (near initialization for `bfd_ind_section')
| section.c: In function `bfd_make_section_anyway':
| section.c:712: structure has no member named `kept_section'
| make[3]: *** [section.lo] Error 1
| make[3]: Leaving directory `/usr/people/geert.nba/mipsel-linux-binutils-2.10.1-3/binutils-2.10.1/bfd'
Should we try mipsel-linux-binutils-2.10.91-1.src.rpm instead?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-02-01 9:27 ` Geert Uytterhoeven
@ 2001-02-01 12:38 ` Maciej W. Rozycki
2001-02-01 15:15 ` Geert Uytterhoeven
0 siblings, 1 reply; 11+ messages in thread
From: Maciej W. Rozycki @ 2001-02-01 12:38 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux/MIPS Development
On Thu, 1 Feb 2001, Geert Uytterhoeven wrote:
> I tried to compile mipsel-binutils using the sources/patches in
> mipsel-linux-binutils-2.10.1-3.src.rpm and got the following result:
[...]
> | section.c: In function `bfd_make_section_anyway':
> | section.c:712: structure has no member named `kept_section'
> | make[3]: *** [section.lo] Error 1
> | make[3]: Leaving directory `/usr/people/geert.nba/mipsel-linux-binutils-2.10.1-3/binutils-2.10.1/bfd'
Did you run `make -C bfd headers' after `./configure'? It llok like you
didn't.
> Should we try mipsel-linux-binutils-2.10.91-1.src.rpm instead?
It should not matter apart from this one is newer.
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-02-01 12:38 ` Maciej W. Rozycki
@ 2001-02-01 15:15 ` Geert Uytterhoeven
2001-02-01 15:30 ` Maciej W. Rozycki
0 siblings, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2001-02-01 15:15 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Linux/MIPS Development
On Thu, 1 Feb 2001, Maciej W. Rozycki wrote:
> On Thu, 1 Feb 2001, Geert Uytterhoeven wrote:
> > I tried to compile mipsel-binutils using the sources/patches in
> > mipsel-linux-binutils-2.10.1-3.src.rpm and got the following result:
> [...]
> > | section.c: In function `bfd_make_section_anyway':
> > | section.c:712: structure has no member named `kept_section'
> > | make[3]: *** [section.lo] Error 1
> > | make[3]: Leaving directory `/usr/people/geert.nba/mipsel-linux-binutils-2.10.1-3/binutils-2.10.1/bfd'
>
> Did you run `make -C bfd headers' after `./configure'? It llok like you
> didn't.
Thanks! (BTW, this is the first time ever that I made a cross-compiler and had
to type `make -C bfd headers')
Now it aborts later at:
| /bin/sh ./genscripts.sh . /usr/local/lib sparc-sun-solaris2.6 mipsel-unknown-linux-gnu mipsel-linux "elf32lsmip" "/usr/ccs/lib" elf32lsmip "mipsel-linux"
| ./genscripts.sh: ./emulparams/mipsel-linux.sh: not found
| make[3]: *** [eelf32lsmip.c] Error 1
| make[3]: Leaving directory `/usr/people/geert.nba/mipsel-linux-binutils-2.10.1-3/binutils-2.10.1/ld'
ld/emulparams/ doesn't seem to contain any mipsel-related files.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-02-01 15:15 ` Geert Uytterhoeven
@ 2001-02-01 15:30 ` Maciej W. Rozycki
2001-02-01 15:48 ` Geert Uytterhoeven
0 siblings, 1 reply; 11+ messages in thread
From: Maciej W. Rozycki @ 2001-02-01 15:30 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux/MIPS Development
On Thu, 1 Feb 2001, Geert Uytterhoeven wrote:
> Now it aborts later at:
>
> | /bin/sh ./genscripts.sh . /usr/local/lib sparc-sun-solaris2.6 mipsel-unknown-linux-gnu mipsel-linux "elf32lsmip" "/usr/ccs/lib" elf32lsmip "mipsel-linux"
> | ./genscripts.sh: ./emulparams/mipsel-linux.sh: not found
> | make[3]: *** [eelf32lsmip.c] Error 1
> | make[3]: Leaving directory `/usr/people/geert.nba/mipsel-linux-binutils-2.10.1-3/binutils-2.10.1/ld'
>
> ld/emulparams/ doesn't seem to contain any mipsel-related files.
Now you didn't run automake in bfd. ;-) You need to run it in ld as
well. How about looking at the included spec file?
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: glibc 2.2 on MIPS
2001-02-01 15:30 ` Maciej W. Rozycki
@ 2001-02-01 15:48 ` Geert Uytterhoeven
0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2001-02-01 15:48 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Linux/MIPS Development
On Thu, 1 Feb 2001, Maciej W. Rozycki wrote:
> On Thu, 1 Feb 2001, Geert Uytterhoeven wrote:
> > Now it aborts later at:
> > | /bin/sh ./genscripts.sh . /usr/local/lib sparc-sun-solaris2.6 mipsel-unknown-linux-gnu mipsel-linux "elf32lsmip" "/usr/ccs/lib" elf32lsmip "mipsel-linux"
> > | ./genscripts.sh: ./emulparams/mipsel-linux.sh: not found
> > | make[3]: *** [eelf32lsmip.c] Error 1
> > | make[3]: Leaving directory `/usr/people/geert.nba/mipsel-linux-binutils-2.10.1-3/binutils-2.10.1/ld'
> >
> > ld/emulparams/ doesn't seem to contain any mipsel-related files.
>
> Now you didn't run automake in bfd. ;-) You need to run it in ld as
Thanks!
> well. How about looking at the included spec file?
Sorry, I didn't realize you had anything to do besides applying the patches,
configure and make (like I did last time).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-02-01 15:49 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-04 20:42 glibc 2.2 on MIPS Christoph Martin
2001-01-04 21:34 ` Maciej W. Rozycki
2001-02-01 9:27 ` Geert Uytterhoeven
2001-02-01 12:38 ` Maciej W. Rozycki
2001-02-01 15:15 ` Geert Uytterhoeven
2001-02-01 15:30 ` Maciej W. Rozycki
2001-02-01 15:48 ` Geert Uytterhoeven
2001-01-05 16:38 ` Nicu Popovici
2001-01-05 10:29 ` Christoph Martin
2001-01-05 23:03 ` Nicu Popovici
2001-01-05 21:10 ` Christoph Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox