* [parisc-linux] $global$ undefined?
@ 1999-09-13 16:46 Grant Grundler
1999-09-13 17:01 ` Philipp Rumpf
0 siblings, 1 reply; 5+ messages in thread
From: Grant Grundler @ 1999-09-13 16:46 UTC (permalink / raw)
To: parisc-linux
I'm getting "undefined reference to `$global$'" error when
linking. Is this a tools or source tree problem?
I'm inclined to think the former but don't know.
thanks,
grant
ps - this is now on an HP-UX 11.00 system.
grundler <438>type ld
ld is /linux/parisc-linux/bin/ld
grundler <439>ld --version
GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
hppaelf
grundler <440>type gcc
gcc is /linux/parisc-linux/bin/gcc
grundler <441>gcc --version
egcs-2.91.60
grundler <442>type as
as is /linux/parisc-linux/bin/as
grundler <443>as --version
GNU assembler 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `parisc-linux'.
grundler <444>make vmlinux
gcc -D__KERNEL__ -I/linux/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -mdisable-fpregs -fwritable-strings -pipe -fno-strength-reduce -DUTS_MACHINE='"parisc"' -c -o init/version.o init/version.c
.
.
.
ld -R 0xc0010000 -N -e stext arch/parisc/kernel/head.o arch/parisc/kernel/init_task.o init/main.o init/version.o ramdisk.o\
arch/parisc/kernel/kernel.o arch/parisc/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/gecko/gecko.a drivers/net/net.a drivers/pci/pci.a \
/linux/linux/arch/parisc/lib/lib.a /linux/linux/lib/lib.a /linux/linux/arch/parisc/lib/lib.a \
-o vmlinux
arch/parisc/kernel/kernel.o: In function `pdc_add_valid':
arch/parisc/kernel/kernel.o($CODE$+0x26f8): undefined reference to `$global$'
make: *** [vmlinux] Error 1
grundler <445>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] $global$ undefined?
1999-09-13 16:46 [parisc-linux] $global$ undefined? Grant Grundler
@ 1999-09-13 17:01 ` Philipp Rumpf
1999-09-13 17:53 ` Grant Grundler
0 siblings, 1 reply; 5+ messages in thread
From: Philipp Rumpf @ 1999-09-13 17:01 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
> grundler <438>type ld
> ld is /linux/parisc-linux/bin/ld
> grundler <439>ld --version
> GNU ld 2.9.1
Use the HP/UX ld.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] $global$ undefined?
1999-09-13 17:01 ` Philipp Rumpf
@ 1999-09-13 17:53 ` Grant Grundler
1999-09-13 18:06 ` Philipp Rumpf
0 siblings, 1 reply; 5+ messages in thread
From: Grant Grundler @ 1999-09-13 17:53 UTC (permalink / raw)
To: Philipp Rumpf; +Cc: parisc-linux
Philipp Rumpf wrote:
> > grundler <438>type ld
> > ld is /linux/parisc-linux/bin/ld
> > grundler <439>ld --version
> > GNU ld 2.9.1
>
> Use the HP/UX ld.
Sorry - I forgot about that in my Nth attempt at setting
up the GNU cross-env tools.
Different problem now.
grundler <402>mv /linux/parisc-linux/bin/ld /linux/parisc-linux/bin/ld.orig
grundler <403>type ld
ld is /bin/ld
...
grundler <406>make vmlinux
...
ld -R 0xc0010000 -N -e stext arch/parisc/kernel/head.o arch/parisc/kernel/init_task.o init/main.o init/version.o ramdisk.o\
arch/parisc/kernel/kernel.o arch/parisc/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/gecko/gecko.a drivers/net/net.a drivers/pci/pci.a \
/linux/linux/arch/parisc/lib/lib.a /linux/linux/lib/lib.a /linux/linux/arch/parisc/lib/lib.a \
-o vmlinux
ld: (Warning) Option "-N" ignored. Non-shared text is not supported.
ld: Bad arch rev: 0
Fatal error.
make: *** [vmlinux] Error 1
Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [parisc-linux] $global$ undefined?
1999-09-13 17:53 ` Grant Grundler
@ 1999-09-13 18:06 ` Philipp Rumpf
1999-09-13 18:18 ` Grant Grundler
0 siblings, 1 reply; 5+ messages in thread
From: Philipp Rumpf @ 1999-09-13 18:06 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
> Different problem now.
please file the object files to see whether they are ELF or SOM (they should
be all SOM).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] $global$ undefined?
1999-09-13 18:06 ` Philipp Rumpf
@ 1999-09-13 18:18 ` Grant Grundler
0 siblings, 0 replies; 5+ messages in thread
From: Grant Grundler @ 1999-09-13 18:18 UTC (permalink / raw)
To: Philipp Rumpf; +Cc: parisc-linux
Philipp Rumpf wrote:
> > Different problem now.
>
> please file the object files to see whether they are ELF or SOM (they should
> be all SOM).
grundler <407>file arch/parisc/kernel/head.o
arch/parisc/kernel/head.o: ELF-32 relocatable object file - PA-RISC
Sigh...I thought the object files were supposed to be SOM until I saw the
following in the binutils/gas/configure:
parisc-*-linux*) fmt=elf em=linux ;;
Should I change this to "som"?
thanks again philipp,
grant
Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-09-13 18:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-13 16:46 [parisc-linux] $global$ undefined? Grant Grundler
1999-09-13 17:01 ` Philipp Rumpf
1999-09-13 17:53 ` Grant Grundler
1999-09-13 18:06 ` Philipp Rumpf
1999-09-13 18:18 ` Grant Grundler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox