This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: mips binutils after 2001-08-03 build incorrect kernel
- To: Guido Guenther <guido dot guenther at gmx dot net>
- Subject: Re: mips binutils after 2001-08-03 build incorrect kernel
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 30 Aug 2001 15:36:28 -0700
- Cc: binutils at sourceware dot cygnus dot com
- References: <20010831002440.A573@galadriel.physik.uni-konstanz.de>
On Fri, Aug 31, 2001 at 12:24:40AM +0200, Guido Guenther wrote:
> Hi H.J.,
> it seems mips binutils after 08-03 build an incorrect kernel(symptom:
> Indy freezes just after tftping the kernel). It seems the following is
> causing most of the problems:
>
> 2001-08-03 Richard Sandiford <rsandifo@redhat.com>
>
> * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value from GPREL addends.
>
> So when I revert this one like:
>
> Index: gas/config/tc-mips.c
> ===================================================================
> RCS file: /cvs/src/src/gas/config/tc-mips.c,v
> retrieving revision 1.57
> retrieving revision 1.56
> diff -u -u -r1.57 -r1.56
> --- gas/config/tc-mips.c 2001/08/03 18:33:34 1.57
> +++ gas/config/tc-mips.c 2001/08/02 10:15:24 1.56
> @@ -9527,9 +9527,7 @@
> {
> valueT symval = S_GET_VALUE (fixP->fx_addsy);
> value -= symval;
> - if (value != 0
> - && ! fixP->fx_pcrel
> - && fixP->fx_r_type != BFD_RELOC_MIPS_GPREL)
> + if (value != 0 && ! fixP->fx_pcrel)
> {
> /* In this case, the bfd_install_relocation routine will
> incorrectly add the symbol value back in. We just want
>
> Things get much better(boots straight to userspace). It still oopses in
> si_swapinfo which looks disassembled like:
>
> 88047aa8: 254a0001 addiu t2,t2,1
> 88047aac: 54a0fff8 0x54a0fff8
> 88047ab0: 94620000 lhu v0,0(v1)
>
> (where epc points to 88047aac). I did not yet find the cause of the
> oops(but building kernels with 2.11.90.0.25 ''fixes'' it.
> I'm not sure wether binutils or gcc(i tried debians 2.95.4 and a 3.0
> prerlease from oss(which worked very reliably for me since march) is
> responsible for this, but I'd really appreciaty any hint from
> you(since I'm complete binutils newbie).
> Regards,
> -- Guido
I have no problems with little endian mips kernel.
H.J.