Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Johannes Stezenbach <js@convergence.de>
To: "H . J . Lu" <hjl@lucon.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: The Linux binutils 2.11.92.0.12 is released.
Date: Tue, 27 Nov 2001 18:00:22 +0100	[thread overview]
Message-ID: <20011127180022.A6897@convergence.de> (raw)
In-Reply-To: <20011126212859.A17557@lucon.org>

Hi,

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

I tried to use binutils-2.11.92.0.12 with gcc-3.0.2 to compile
the linux kernel from linux-mips.sourceforge.net 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 `/home/js/MIPS/kernel/build/linux-2.4.14-mips/arch/mips/ramdisk'
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-2.11.92.0.10. The ld.script is:
OUTPUT_ARCH(mips)
SECTIONS
{
  .initrd :
  {
       *(.data)
  }
}



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-2.11.92.0.10, 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.


Regards,
Johannes

  parent reply	other threads:[~2001-11-27 18:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-27  5:28 The Linux binutils 2.11.92.0.12 is released H . J . Lu
2001-11-27 15:49 ` Aldy Hernandez
2001-11-27 17:00 ` Johannes Stezenbach [this message]
2001-11-27 18:16   ` PATCH: Fix ELF (Re: The Linux binutils 2.11.92.0.12 is released.) H . J . Lu
2001-11-27 18:54     ` Daniel Jacobowitz
2001-11-27 18:25   ` The Linux binutils 2.11.92.0.12 is released H . J . Lu
2001-11-27 20:52   ` Johannes Stezenbach
2001-11-28  6:55 ` H . J . Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011127180022.A6897@convergence.de \
    --to=js@convergence.de \
    --cc=hjl@lucon.org \
    --cc=linux-mips@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox