mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Ronis <ronis@ronispc.chem.mcgill.ca>
To: Marc-Christian Petersen <m.c.p@wolk-project.de>
Cc: linux-kernel@vger.kernel.org, ronis@onsager.chem.mcgill.ca,
	David Ronis <ronis@ronispc.chem.mcgill.ca>
Subject: Re: build failure in 2.4.20
Date: Mon, 9 Dec 2002 12:30:44 -0500	[thread overview]
Message-ID: <15860.54084.694635.159603@ronispc.chem.mcgill.ca> (raw)
In-Reply-To: <200212091809.57622.m.c.p@wolk-project.de>

Hi Marc-Christian,

Thanks for the reply.  I made the change and that problem went away.  Now however, I die at the next step; i.e.,

make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
        drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o  drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o \
        net/network.o \
        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
make[1]: Entering directory `/usr/src/linux/arch/i386/boot'
ld -m elf_i386 -Ttext 0x0 -s -oformat binary bbootsect.o -o bbootsect
ld: cannot open binary: No such file or directory
make[1]: *** [bbootsect] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/boot'
make: *** [bzImage] Error 2

I'm using GNU ld version 2.13 and objdump -i shows that binary is
allowed.  I tried changing the instances of -oformat binary to
--oformat=binary in arch/i386/Makefile, but the changes seem to be
ignored, which is strange.

David





Marc-Christian Petersen writes:
 > On Monday 09 December 2002 16:22, David Ronis wrote:
 > 
 > Hi David,
 > 
 > > drivers/net/net.o(.data+0xd4): undefined reference to `local symbols in
 > > discarded section .text.exit' make: *** [vmlinux] Error 1
 > > It sounds like this is a problem with ld or as, but I'm not sure.  Any
 > > suggestions?
 > $editor arch/i386/vmlinux.lds
 > 
 > you'll see starting at line 67 this:
 > 
 >   /* Sections to be discarded */
 >   /DISCARD/ : {
 >         *(.text.exit)
 >         *(.data.exit)
 >         *(.exitcall.exit)
 >         }
 > 
 > remove this:
 > 
 >         *(.text.exit)
 > 
 > try again.
 > 
 > ciao, Marc
 > 

  reply	other threads:[~2002-12-09 17:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-09 15:22 David Ronis
2002-12-09 17:09 ` Marc-Christian Petersen
2002-12-09 17:30   ` David Ronis [this message]
2002-12-09 17:55     ` David Ronis
2002-12-09 17:31   ` Dave Jones
2002-12-09 18:47     ` David Ronis
2002-12-09 18:47       ` Dave Jones
2002-12-09 18:49       ` Marc-Christian Petersen
2002-12-10 13:42 ` Adrian Bunk
2002-12-10 14:23   ` David Ronis

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=15860.54084.694635.159603@ronispc.chem.mcgill.ca \
    --to=ronis@ronispc.chem.mcgill.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.c.p@wolk-project.de \
    --cc=ronis@onsager.chem.mcgill.ca \
    /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

Powered by JetHome