[parisc-linux] Compiling Linux Kernel on HP-UX

John David Anglin dave@hiauly1.hia.nrc.ca
Tue, 15 Jun 1999 14:10:50 -0400 (EDT)


> 
> |
> | Hi,
> |
> | I'm trying to compile the latest CVS-snapshot (19990615) on my HP 715/33
> | using gcc 2.7.2.2 and binutils 2.7. Compiling kernel/sched.c gives the
> | following error:
> |
> | sched.c:579: section attributes are not supported for this target
> |
> gcc 2.8.1 isn't quite enough. Although it does support section
> attributes, there is a bug in the code emitted that cannot be assembled
> with gas 2.9.1. I sucessfully worked around it by changing the condition
> from a fatal error to a warning in gas.
> 
> Here is the text of the bug I submitted to gcc:

I haven't tried your sample but I don't have the the section problem
with gcc-2.95 (prerelease) and binutils-2.9.4 (pre).  I do have a
link problem:

ld -N -e _stext arch/parisc/kernel/head.o arch/parisc/kernel/init_task.o init/ma
in.o init/version.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/net/net.a \
	/ehic/a/pa/linux/arch/parisc/lib/lib.a /ehic/a/pa/linux/lib/lib.a /ehic/a/pa/linux/arch/parisc/lib/lib.a \
	-o vmlinux
ld: Unsatisfied symbols:
   swapper_pg_dir (data)
   _stext (data)
make: *** [vmlinux] Error 1

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)