[parisc-linux] Today's boot experience on a 735

John David Anglin dave@hiauly1.hia.nrc.ca
Tue, 16 Nov 1999 17:56:32 -0500 (EST)


> > The _end symbol is not a reliable indicator of where
> > the kernel's memory ends.  And the hpux
> > bootloader doesn't provide the SOM header from whence this could
> > theoretically be calculated.  I haven't tried out the _end trick
> > posted last week, but it looks like it'll work (don't call the symbol
> > _end if you try it).  As long as your kernel links, the guess is
> > probably OK for now.
> 
> Ok, I see the problem now.  The section $DLT$ contains a bunch of
> undefined common symbols as well as _end.  For example,
> 
> boot_cpu_data       |       416|undef |common |$CODE$
> 
> The _end defined by the linker is the end of the bss section but not
> the end of last section of the kernel.

Ok, this is a programing problem.  For objects that don't need external
linkage, declare them static.  For those that do, initialize them!  This
will eliminate those pesky common variables.  For example,

--- setup.c.orig	Fri Nov 12 18:23:50 1999
+++ setup.c	Tue Nov 16 17:46:36 1999
@@ -57,14 +57,14 @@
 
 
 #define COMMAND_LINE_SIZE 1024
-char 	saved_command_line[COMMAND_LINE_SIZE];
+char 	saved_command_line[COMMAND_LINE_SIZE] = {};
 
 #define pdc_wrapper(args...) ({				\
 	real_routine = (void *)PAGE0->mem_pdc;		\
 	real_call(##args);				\
 })
 
-struct cpuinfo_parisc boot_cpu_data;
+struct cpuinfo_parisc boot_cpu_data = {};
 
 extern __initfunc(unsigned long hp700fb_init(unsigned long mem_start));
 extern	void dino_init(void);
@@ -73,7 +73,7 @@
 #endif
 extern void do_inventory(void);
 
-PDC_CALL pdc;
+PDC_CALL pdc = {};
 
 
 void __xchg_called_with_bad_pointer(void)

X-From-Line: hppa-linux@thepuffingroup.com  Wed Mar 10 14:48:46 1999
Return-Path: <hppa-linux@thepuffingroup.com>
Received: from merlin.pcj.primenet.com (pcj@merlin.pcj.primenet.com [192.168.111.10])
	by merlin.pcj.primenet.com (8.8.7/8.8.7) with ESMTP id OAA03120
	for <pcj@merlin.pcj.primenet.com>; Wed, 10 Mar 1999 14:48:45 -0800
Resent-From: hppa-linux@thepuffingroup.com
Received: from pop.primenet.com
	by merlin.pcj.primenet.com (fetchmail-4.4.7 POP3)
	for <pcj/merlin.pcj.primenet.com> (single-drop); Wed, 10 Mar 1999 14:48:45 PST
Received: from smtp02.primenet.com (daemon@smtp02.primenet.com [206.165.6.132])
	by primenet.com (8.8.8/8.8.5) with ESMTP id OAA01708
	for <pcj@smtp-local.primenet.com>; Mon, 8 Mar 1999 14:22:41 -0700 (MST)
Received: (from daemon@localhost)
	by smtp02.primenet.com (8.8.8/8.8.8) id OAA06576
	for <pcj@primenet.com>; Mon, 8 Mar 1999 14:23:43 -0700 (MST)
Received: from SOD.RES.CMU.EDU(128.2.91.30)
 via SMTP by smtp02.primenet.com, id smtpd006517; Mon Mar  8 14:23:34 1999
Received: (from listserv@localhost)
	by sod.res.cmu.edu (8.8.7/8.8.7) id PAA12738;
	Mon, 8 Mar 1999 15:51:13 -0500
Resent-Date: Mon, 8 Mar 1999 15:51:13 -0500
Delivered-To: thepuffi-hppa-linux@thepuffingroup.com
X-Authentication-Warning: devserv.devel.redhat.com: adevries owned process doing -bs
Date: Mon, 8 Mar 1999 15:50:54 -0500 (EST)
From: Alex deVries <adevries@redhat.com>
X-Sender: adevries@devserv.devel.redhat.com
To: hppa-linux@thepuffingroup.com
Message-ID: <Pine.LNX.3.96.990308154734.5280m-100000@devserv.devel.redhat.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [hppa-linux] New cross compiler set.
Resent-Message-ID: <"Q_R5S3.0.y63.-W3vs"@sod.res.cmu.edu>
Reply-To: hppa-linux@thepuffingroup.com
X-Mailing-List: <hppa-linux@thepuffingroup.com> archive/latest/150
X-Loop: hppa-linux@thepuffingroup.com
Precedence: list
Resent-Sender: hppa-linux-request@thepuffingroup.com
X-UIDL: 7c0979758f3b5c009bc82d6e6b45219e
Status: RO
Lines: 25
Xref: merlin.pcj.primenet.com palinux:121


I've rebuilt cross compiling rpms for parisc-linux, and am uploading them
to ftp://sod.res.cmu.edu/pub/parisc/tools .

This fixes some problems with program names and locations. This will help
in actually getting hilo to cross compile.

The files uploaded are:
binutils-x-hppa-2.9.1-4.i386.rpm    egcs-x-hppa-linux-1.1.1-3.i386.rpm
binutils-x-hppa-2.9.1-4.src.rpm     egcs-x-hppa-linux-1.1.1-3.src.rpm


- Alex

-- 
Alex deVries <puffin@redhat.com>     
Red Hat Contrib Net maintainer          
Ottawa, Canada  
HPPA/Linux Porting Team


-------------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@thepuffingroup.com with
`unsubscribe' as the subject.