Article View: gnu.gcc.help
Article #52230help with version 2 of linker
From: Gary Zimmerman
Date: Wed, 13 Jan 1993 23:33
Date: Wed, 13 Jan 1993 23:33
39 lines
1947 bytes
1947 bytes
I am trying to use the binutils-2.0 on a hp3k370 hosted to 68k ieee 695
target system. I have made the linker, but when I link I get that it runs
out of Virtual Memory. ("Virtual Memory exhausted"). I am linking with a
a linker command file and the link line shown below:
<linker command file>
OUTPUT_ARCH("m68k:68020")
OUTPUT_FORMAT("ieee")
SEARCH_DIR(/usr/local/lib/gcc-lib/mc68000/2.1)
SECTIONS
{
.text 0x000000 : { }
.data 0x600000: { }
.bss : { }
}
<command line>
LINK = /usr/local/lib/gcc-lib/mc68000/2.1/ld
LINKOPTS = -v -M -Ticeimi.ld -t -L/usr/local/lib/gcc-lib/mc68000/2.1
LIB030 = -lgcc -lc -lm
$(LINK) $(LINKOPTS) $(FILES1:BS=.o) $(FILES2:.BS=.o) $(FILES3:BS=.o)
$(FILES4:BS=.o) $(FILES5:BS=.o) $(LIBFILES:BS=.a) $(LIB030)
$(TERMFILES:BS=.o) $(LASTFILES:BS=.o) -o$(SYSTEM).X >$(SYSTEM).map
The file sets used produce about 2MB of code and 0.6MB of data and
all told is composed of over 100 files.
So.... How come I run out of virtual memory on a hp9000-370 with 16MB RAM
and 132MB local swap space?
Also, I have been unable to get the line below to work:
LDEMULATION=gldm68k
I get the message "emulation m68k not found" (or something to that effect).
If anyone can shed some light on this let me know gzimmerm@hpdmd48.boi.hp.com
Technical Details
Message-ID:
<9301132325.AA18960@hpbs988.boi.hp.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hpbs988.boi.hp.com!gzimmermShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3c6d02b8247bfe63,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-13 15:39:29 PST Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hpbs988.boi.hp.com!gzimmerm From: gzimmerm@hpbs988.boi.hp.com (Gary Zimmerman) Newsgroups: gnu.gcc.help Subject: help with version 2 of linker Date: 13 Jan 1993 18:33:57 -0500 Organization: GNUs Not Usenet Lines: 40 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9301132325.AA18960@hpbs988.boi.hp.com> NNTP-Posting-Host: news.cis.ohio-state.edu