[parisc-linux] [PATCH 1/2] parisc: beautify vmlinux.lds

Sam Ravnborg sam at ravnborg.org
Thu Oct 11 14:35:07 MDT 2007


On Thu, Oct 11, 2007 at 04:24:24PM -0400, Kyle McMartin wrote:
> On Thu, Oct 11, 2007 at 04:01:08PM -0400, Kyle McMartin wrote:
> > > >   LD      arch/parisc/kernel/built-in.o
> > > > hppa64-hp-linux-ld: Relocatable linking with relocations from format elf64-hppa-linux (arch/parisc/kernel/syscall.o) to format elf64-hppa-linux (arch/parisc/kernel/built-in.o) is not supported
> > > > 
> > > 
> > > This is weird...
> > >
> > 
> > Looking into this one now, but it's *very* strange...
> > 
> 
> Was that defconfig? parisc's defconfig is a 32-bit kernel, so make sure
> you're using a 32-bit toolchain. (My guess after staring for a while.)

I use the toolchain I got from you and defconfig from latest -linus.

I tracked it down to .level LEVEL in syscall.S.

If .level 1.1 then the linker error happens.
If level 2.0 it succeeds.

changing LEVEL in assembly.h did not do it because
some files (at least hpmc.S) hardcoded use of .level 1.1

It was found by brute-force and I dunno what is the right way forward here.

Hope this helps.

	Sam



More information about the parisc-linux mailing list