onn@utgpu.UUCP (09/04/87)
Grrr! I really do hate memory models! OK. I am compiling a program under SCO XENIX 2.1.3. The program consists of 38 object files. All sources compile *clean* with 'cc -M2l -O -c ?????.c'. When I link them with 'cc -Ml -o file *.o -lcurses -ltermlib', what do I get??? /bin/ld: Segment size exceeds 64K Input File: /lib/Llibc.a(errlst.o.c) pos: a955 Record type: 98 Now I *know* that the segments exceed 64K! That is the reason why I chose the LARGE memory model (-Ml) in the first place! What is ld *really* trying to say here? Brian -- -------------- Brian A. Onn University of Toronto Computing Services Erindale College ...{utzoo, ihnp4, decvax}!utcs!onn
caf@omen.UUCP (Chuck Forsberg WA7KGX) (09/06/87)
In article <1987Sep3.213949.13909@gpu.utcs.toronto.edu> onn@gpu.utcs.toronto.edu (Brian Onn) writes:
:
:Grrr! I really do hate memory models!
Amen.
:/bin/ld: Segment size exceeds 64K
:Input File: /lib/Llibc.a(errlst.o.c) pos: a955 Record type: 98
:
:Now I *know* that the segments exceed 64K! That is the reason why I chose
:the LARGE memory model (-Ml) in the first place!
:
:What is ld *really* trying to say here?
It's saying you need 386 Xenix.
Seriously, large model means you can have multiple segments, but each
must be less than 64k. Maybe you have too many small arrays in the
data segment, so it gets too big. Try putting some of them into
different segments. There is a compiler switch that forces arrays
larger than N into far segments.
Chuck Forsberg WA7KGX Author of Pro-YAM communications Tools for PCDOS and Unix
...!tektronix!reed!omen!caf Omen Technology Inc "The High Reliability Software"
17505-V Northwest Sauvie Island Road Portland OR 97231 VOICE:503-621-3406:VOICE
TeleGodzilla BBS: 621-3746 19200/2400/1200 CIS:70007,2304 Genie:CAF
omen Any ACU 2400 1-503-621-3746 se:--se: link ord: Giznoid in:--in: uucp
omen!/usr/spool/uucppublic/FILES lists all uucp-able files, updated hourly