public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Linux-ia64] Compiling kernel 2.4.17 fails at link stage
@ 2002-01-05  1:31 Grant Grundler
  2002-01-05  2:11 ` Alan Modra
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Grant Grundler @ 2002-01-05  1:31 UTC (permalink / raw)
  To: linux-ia64

Alan Modra wrote:
> It's a kernel bug exposed by recent binutils.  You can either fix the
> kernel by making the references weak, or hack around the problem by
> adding -fnoinhibit-exec to the ld command line.

I had added "-fnoinhibit-exec" to LINKFLAGS in linux/arch/ia64/Makefile
and got:
	ld -f may not be used without -shared
	make: *** [vmlinux] Error 1

So how do I "make references weak"?

thanks,
grant


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Compiling kernel 2.4.17 fails at link stage
  2002-01-05  1:31 [Linux-ia64] Compiling kernel 2.4.17 fails at link stage Grant Grundler
@ 2002-01-05  2:11 ` Alan Modra
  2002-01-05  3:21 ` Grant Grundler
  2002-01-07 19:41 ` Grant Grundler
  2 siblings, 0 replies; 4+ messages in thread
From: Alan Modra @ 2002-01-05  2:11 UTC (permalink / raw)
  To: linux-ia64

On Fri, Jan 04, 2002 at 05:31:24PM -0800, Grant Grundler wrote:
> Alan Modra wrote:
> > It's a kernel bug exposed by recent binutils.  You can either fix the
> > kernel by making the references weak, or hack around the problem by
> > adding -fnoinhibit-exec to the ld command line.
> 
> I had added "-fnoinhibit-exec" to LINKFLAGS in linux/arch/ia64/Makefile
> and got:

Sorry, typo.  --noinhibit-exec

> So how do I "make references weak"?

extern int foo __attribute__ ((weak));



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Compiling kernel 2.4.17 fails at link stage
  2002-01-05  1:31 [Linux-ia64] Compiling kernel 2.4.17 fails at link stage Grant Grundler
  2002-01-05  2:11 ` Alan Modra
@ 2002-01-05  3:21 ` Grant Grundler
  2002-01-07 19:41 ` Grant Grundler
  2 siblings, 0 replies; 4+ messages in thread
From: Grant Grundler @ 2002-01-05  3:21 UTC (permalink / raw)
  To: linux-ia64

"H . J . Lu" wrote:
> Use --noinhibit-exec.

It didn't complain. But it didn't help either:

ld -static -T arch/ia64/vmlinux.lds --noinhibit-exec arch/ia64/kernel/head.o arch/ia64/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/ia64/kernel/kernel.o arch/ia64/mm/mm.o arch/ia64/ia32/ia32.o arch/ia64/dig/dig.a kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
         drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o \
        net/network.o \
        /usr/src/2.4.17/arch/ia64/lib/lib.a /usr/src/2.4.17/lib/lib.a /usr/src/2.4.17/arch/ia64/lib/lib.a \
        --end-group \
        -o vmlinux
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x0): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x8): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x18): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x20): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x30): undefined reference to `local symbols in discarded section .text.exit'
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x38): more undefined references to `local symbols in discarded section .text.exit' follow
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x0): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x8): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x18): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x20): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x30): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x38): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x48): unsupported reloc
arch/ia64/kernel/kernel.o(.IA_64.unwind.text.exit+0x50): unsupported reloc
make: *** [vmlinux] Error 1
grundler <511>

More info appended.
BTW, binaries I'm using are Debian "woody".

thanks,
grant

hpntcv6:/home/grundler \<521\>ld -v
GNU ld version 2.11.92.0.12.3 20011121 Debian/GNU Linux

hpntcv6:/var/cache/apt/archives# dpkg -l binutils
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercaseºd)
||/ Name           Version        Description
+++-=======-=======-======================
ii  binutils       2.11.92.0.12.3 The GNU assembler, linker and binary utiliti

hpntcv6:/var/cache/apt/archives# ls -l binutils_*
-rw-r--r--    1 root     root      1993810 Nov 25 17:27 binutils_2.11.92.0.10-4_ia64.deb
-rw-r--r--    1 root     root      2221132 Dec  6 11:35 binutils_2.11.92.0.12.3-2_ia64.deb
-rw-r--r--    1 root     root      2221386 Dec  9 16:06 binutils_2.11.92.0.12.3-3_ia64.deb
-rw-r--r--    1 root     root      2221136 Dec 27 00:54 binutils_2.11.92.0.12.3-4_ia64.deb



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] Compiling kernel 2.4.17 fails at link stage
  2002-01-05  1:31 [Linux-ia64] Compiling kernel 2.4.17 fails at link stage Grant Grundler
  2002-01-05  2:11 ` Alan Modra
  2002-01-05  3:21 ` Grant Grundler
@ 2002-01-07 19:41 ` Grant Grundler
  2 siblings, 0 replies; 4+ messages in thread
From: Grant Grundler @ 2002-01-07 19:41 UTC (permalink / raw)
  To: linux-ia64

"H . J . Lu" wrote:
> Did you get the output, vmlinux? If yes, does it work?

no vmlinux resulted.
Sorry - I hadn't check once I got the output and error.

thanks,
grant

Grant Grundler
+1.408.447.7253


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-07 19:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-05  1:31 [Linux-ia64] Compiling kernel 2.4.17 fails at link stage Grant Grundler
2002-01-05  2:11 ` Alan Modra
2002-01-05  3:21 ` Grant Grundler
2002-01-07 19:41 ` Grant Grundler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox