All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: David Kesselring <dkesselr@mmc.atmel.com>
Cc: linux-mips@linux-mips.org
Subject: Re: 64bit Sead build
Date: Tue, 22 Jul 2003 01:36:49 +0200	[thread overview]
Message-ID: <20030721233649.GA6900@linux-mips.org> (raw)
In-Reply-To: <Pine.GSO.4.44.0307211027270.16227-100000@ares.mmc.atmel.com>

On Mon, Jul 21, 2003 at 10:32:55AM -0400, David Kesselring wrote:

> I'm trying to build linux for Sead in 64 bit. I found that it would not
> compile without the change at the end of this note. After this fix, I got
> the following link error. Does anyone have an idea why?

> mips64el-linux-ld --oformat elf32-tradlittlemips -G 0 -static  -Ttext
> 0x80100000 arch/mips64/kernel/head.o
> arch/mips64/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
> \
>         --start-group \
>         arch/mips64/kernel/kernel.o arch/mips64/mm/mm.o kernel/kernel.o
> mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> drivers/net/net.o drivers/media/media.o \
>         net/network.o \
>         arch/mips64/lib/lib.a
> /home/dkesselr/MIPS/linux-mips-cvs/2003Jul18/linux-build-mips64b/lib/lib.a
> arch/mips/mips-boards/sead/sead.o
> arch/mips/mips-boards/generic/mipsboards.o \
>         --end-group \
>         -o vmlinux
> mips64el-linux-ld: warning: cannot find entry symbol __start; defaulting
> to 0000000080100000
> mips64el-linux-ld: vmlinux: Not enough room for program headers (allocated
> 3, need 4)

It may not be obvious but this is ld's way of telling you it doesn't
feel happy with the options and input files; in some case it could also
be considered an insufficiency of ld ...

In this particular case the bug is that the kernel configuration doesn't
set CONFIG_BOOT_ELF32.

I'm a bit surprised to see somebody's actually using a 64-bit kernel on a
SEAD.

  Ralf

  reply	other threads:[~2003-07-21 23:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-21 14:32 64bit Sead build David Kesselring
2003-07-21 23:36 ` Ralf Baechle [this message]
2003-07-22 12:40   ` David Kesselring
2003-07-22 12:48     ` Ralf Baechle
2003-07-22 12:49     ` Dominic Sweetman
2003-07-22 13:04       ` Ralf Baechle
2003-07-22 12:52     ` Ralf Baechle

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=20030721233649.GA6900@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=dkesselr@mmc.atmel.com \
    --cc=linux-mips@linux-mips.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.