Subject: Re: Building ld.so
To: Henric Jungheim <henric@zoom.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: amiga
Date: 01/01/1996 22:17:35
[ Expanding Cc: list ... this is probably of general interest... ]

On Mon, 1 Jan 1996 19:10:04 -0800 (PST) 
 Henric Jungheim <henric@zoom.com> wrote:

 > I'm running NetBSD1.1 (supped/built on Dec. 27th) on an a4000/WarpEngine
 > w/ 16MB. 

Hmm, 68040...

 > I can't seem to get gcc 2.7.2 (from MIT, config'ed for m68k-*-netbsd1.1)
 > to build ld.so properly (the only change I've made to gcc was for it to
 > default to -m68020-40; forcing a "-m68020" on the command line has no
 > effect on the symptoms).  Anyway, the compile works fine, but "make
 > install" fails.  I get a "strip.core" in the rtld directory and the ld.so
 > that was in the /usr/libexec dir is gone (which was rather annoying the
 > first time; now I keep a backup copy of ld.so handy).  If I try to run
 > "install" without the "-s"  option, then anything that uses shared
 > libraries segmentation faults.  If I try to "strip" the file directly
 > strip (apparently) works, but the resulting ld.so also causes segmentation
 > faults. 
 > 
 > Is it something I've done to mess up gcc or has someone else seen this 
 > problem?

I saw this today when building the world on my hp380 ... I had thought 
_for sure_ that I'd rebuilt ld.so with gcc 2.7.2 (in the tree now, 
-current) ... however, I had this problem today, as well.  ld.so was 
seriously broken when compiled with gcc 2.7.2.  I'm wondering if this is 
an '040-specific problem.  I haven't had the chance to try it on my '020 
hp319 yet.  When I do, I'll report my findings.  However, I'm considering 
reverting the hp300 back to 2.4.5 unless Paul has any ideas...

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939