Skip to contentSkip to conversation

64-bit kernel builds with gcc-3.4 experimental cross.

parisc-linux Carlos O'Donell 3 participants 6 messages Sep 17, 2003 – Sep 18, 2003

lore
Share & tools
lore
#0 lore raw

jda,

Any thoughts? This ld was from a multi-arch binutils that had enable-targets with hppa64-linux.

---
hppa64-linux-ld -r -o kernel.o sched.o dma.o fork.o exec_domain.o panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o sys.o kmod.o context.o
hppa64-linux-ld: Relocatable linking with relocations from format elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not supported
make[2]: *** [kernel.o] Error 1
make[2]: Leaving directory `/mnt/flaire/src/linux-2.4/kernel' make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/mnt/flaire/src/linux-2.4/kernel'
make: *** [_dir_kernel] Error 2 carlos@firin:/mnt/flaire/src/linux-2.4$
---
GNU ld version 2.14.90 20030917

Reading specs from /mnt/flaire/hppa-toolchain/install/lib/gcc/hppa64-linux/3.4/specs Configured with: '../gcc-cvs/configure' '--host=hppa-linux '--prefix=/mnt/flaire/hppa-toolchain/install '--target=hppa64-linux '--build=hppa-linux '--with-gnu-ld=/mnt/flaire/hppa-toolchain/install/bin/ld '--with-gnu-as=/mnt/flaire/hppa-toolchain/install/bin/as '--enable-languages=c
Thread model: posix
gcc version 3.4 20030916 (experimental)

c.

#1 lore raw
Quoted 11 lines

Any thoughts? This ld was from a multi-arch binutils that had enable-targets with hppa64-linux.

---
hppa64-linux-ld -r -o kernel.o sched.o dma.o fork.o exec_domain.o panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o sys.o kmod.o context.o
hppa64-linux-ld: Relocatable linking with relocations from format elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not supported

As far as I know, there is no multi-arch support in ld or as. There isn't multi-arch support in GCC either. You need separate compilers for 32 and 64 bits.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
#2 lore raw
Quoted 12 lines · John David Anglin
Quoted 11 lines

Any thoughts? This ld was from a multi-arch binutils that had enable-targets with hppa64-linux.

---
hppa64-linux-ld -r -o kernel.o sched.o dma.o fork.o exec_domain.o panic.o printk.o module.o exit.o itimer.o info.o time.o softirq.o resource.o sysctl.o acct.o capability.o ptrace.o timer.o user.o signal.o sys.o kmod.o context.o
hppa64-linux-ld: Relocatable linking with relocations from format elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not supported

Quoted 3 lines

As far as I know, there is no multi-arch support in ld or as. There isn't multi-arch support in GCC either. You need separate compilers for 32 and 64 bits.

Separate compilers yes. Separate linker and assembler no. I thought I could use '--enable-targets=hppa64-linux' in binutils.

c.

#3 lore raw
Quoted 1 line

Separate compilers yes. Separate linker and assembler no.

There isn't an option in as to select the output object format. There are somewhat different relocations used in the 32 and 64 bit formats. So, I don't see how you can use a single assembler for both.

You may be able to use "-A" with ld but GCC doesn't support this.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
#4 lore raw
In reply to Carlos O'Donell
Quoted 11 lines · Carlos O'Donell
Quoted 7 lines · John David Anglin
Quoted 3 lines

hppa64-linux-ld: Relocatable linking with relocations from format elf32-hppa-linux (sched.o) to format elf32-hppa-linux (kernel.o) is not supported

As far as I know, there is no multi-arch support in ld or as. There isn't multi-arch support in GCC either. You need separate compilers for 32 and 64 bits.

Separate compilers yes. Separate linker and assembler no. I thought I could use '--enable-targets=hppa64-linux' in binutils.

I think that only works for some parts of binutils -- specifically not ld.

Signature · 3 lines
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
#5 lore raw
Quoted 6 lines
Quoted 3 lines

Separate compilers yes. Separate linker and assembler no. I thought I could use '--enable-targets=hppa64-linux' in binutils.

I think that only works for some parts of binutils -- specifically not ld.

So it seems. Fiddle sticks. Two builds it is then :)

c.