Subject: Re: Kernel compile errors
To: Kevin Sullivan <ksulliva@psc.edu>
From: Castor Fu <castor@geocast.net>
List: port-pmax
Date: 03/27/1998 10:37:45
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--==_Exmh_-760506072P
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Content-ID: <Pine.GSO.3.96.980327103445.29266H@geo.geocast.net>

> I'm trying to compile AFS into a NetBSD/pmax 1.3.1 kernel.  I am getting:
> 
> ld -Ttext 0x80030000 -T ../../../../arch/mips/conf/kern.ldscript -e start -G 0 -x -o netbsd ${SYSTEM_OBJ} vers.o
> libafs.o: In function `dir_EnumerateDir':
> ../afs/afs_dir.c(.text+0x944): relocation truncated to fit: R_MIPS_GPREL16 DErrno
> ../afs/afs_dir.c(.text+0x960): relocation truncated to fit: R_MIPS_GPREL16 DErrno
> ../afs/afs_dir.c(.text+0x978): relocation truncated to fit: R_MIPS_GPREL16 DErrno
> libafs.o: In function `rxk_input':
> ../rx/rx_kernel.c(.text+0x7224): relocation truncated to fit: R_MIPS_GPREL16 rxk_GetPacketProc
> ../rx/rx_kernel.c(.text+0x7268): relocation truncated to fit: R_MIPS_GPREL16 rxk_PacketArrivalProc
> 
> I'm not familiar with ELF binaries and the details of pmax kernels, so
> I cannot translate these messages.  Any suggestions?

It looks like the afs routines were not compiled with "-G 0" and so are 
expecting variables to be stored using a global offset table.    Try
to make sure you're using the same 'cc' flags on them as on the other
object files in your kernel.

	-castor

--==_Exmh_-760506072P
Content-Type: APPLICATION/PGP-SIGNATURE
Content-ID: <Pine.GSO.3.96.980327103445.29266I@geo.geocast.net>
Content-Description: 

-----BEGIN PGP MESSAGE-----
Version: 2.6.2

iQCVAwUBNRvkUH4qeMKIUCpVAQG9DwP/Z1S6qhrnNE+87744TL66IMUXrwu5dulD
Ov33LISKf9VY8kDJ/CRnxH3KmEDzpThxO/IwnMocucl02QA8v5EtwQzsyk37MS0S
DyCecK1IrqQYXoekln1F44hBtXOOzTae7WfQs7X3ICOXM9WqP0d4sAXnC3T2AGX/
kfIRD3RL/NE=
=u9Kl
-----END PGP MESSAGE-----

--==_Exmh_-760506072P--