[Top] [All Lists]

Re: The Linux binutils is released.

To: "H . J . Lu" <>
Subject: Re: The Linux binutils is released.
From: Johannes Stezenbach <>
Date: Tue, 27 Nov 2001 18:00:22 +0100
In-reply-to: <>
Mail-followup-to: Johannes Stezenbach <>, "H . J . Lu" <>,
References: <>
User-agent: Mutt/1.3.23i

On Mon, Nov 26, 2001 at 09:28:59PM -0800, H . J . Lu wrote:
> Please report any bugs related to binutils to

I tried to use binutils- with gcc-3.0.2 to compile
the linux kernel from for a VR4121 CPU
(littel endian, target mipsel-linux).

a) The linker chrashes trying to create the object file for the
   embedded initrd ramdisk:

make CFLAGS="-I /home/js/MIPS/kernel/build/linux-2.4.14-mips/include/asm/gcc 
-D__KERNEL__ -I/home/js/MIPS/kernel/build/linux-2.4.14-mips/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mips2 
-Wa,-m4100,--trap -pipe " -C  arch/mips/ramdisk
make[1]: Entering directory 
echo "O_FORMAT:  " elf32-tradlittlemips
O_FORMAT:   elf32-tradlittlemips
mipsel-linux-ld -G 0 -T ld.script -b binary --oformat elf32-tradlittlemips -o 
ramdisk.o ramdisk.gz
make[1]: *** [ramdisk.o] Segmentation fault
make[1]: *** Deleting file `ramdisk.o'

  The same ramdisk.gz worked with binutils- The ld.script is:
  .initrd :

b) I still get the -march vs. -mipsN warings:

mipsel-linux-gcc -I 
/home/js/MIPS/kernel/build/linux-2.4.14-mips/include/asm/gcc -D__KERNEL__ 
-I/home/js/MIPS/kernel/build/linux-2.4.14-mips/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mips2 
-Wa,-m4100,--trap -pipe    -fno-omit-frame-pointer -c -o sched.o sched.c
Assembler messages:
Warning: The -march option is incompatible to -mipsN and therefore ignored.

  I tried to change the CPU options from "-mips2 -Wa,-m4100,--trap" to
  "-Wa,-march=4111,--trap" with binutils-, which silenced the
  warnings and seemed to work, but someone notified me that this might
  cause the compiler to generate wrong code. But I need the VR4111
  suspend/hibernate/standby mnemonics for power management.


<Prev in Thread] Current Thread [Next in Thread>