Path: utzoo!attcan!uunet!tank!ncar!asuvax!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!mit-eddie!apollo!vasta From: vasta@apollo.HP.COM (John Vasta) Newsgroups: comp.sys.apollo Subject: Re: Help needed with shared libs & ld Message-ID: <488229e8.20b6d@apollo.HP.COM> Date: 7 Feb 90 22:06:00 GMT References: Sender: root@apollo.HP.COM Reply-To: vasta@apollo.HP.COM (John Vasta) Distribution: comp Organization: Hewlett-Packard Company, Apollo Division; Chelmsford, MA Lines: 29 In article jnp@mjolner.tele.nokia.fi (J|rgen N|rgaard) writes: > >Hello, > >I'm trying to figure out how to use shared libraries (that can be >inlib'ed in csh). After a small fight with the somewhat vague/ >unprecise documentation I succeded in having 2 small files used >as shared libraries. (I'm still at SR10.1) > >Next step was to combine them into one file. Call the two files ext.o ext2.o. > >then a file was produced like: > > ld -r -o dd -A allmarks -A loadhigh -A alllooks ext.o ext2.o > >but when inlib'ed I got the error-message: > "dd - object module requires link step (process manager/loader)" >which doesn't make sense to me (just linked it :-) . And to my best knowledge >not described in the documentation. > >Any ideas what is wrong / how it should be done ? You need to also specify the -a switch to ld; it causes the unitialized data segment (.bss) to be allocated. John Vasta Hewlett-Packard Apollo Systems Division vasta@apollo.hp.com M.S. CHA-01-LT (508) 256-6600 x6362 300 Apollo Drive, Chelmsford, MA 01824 UUCP: {decwrl!decvax, mit-eddie, attunix}!apollo!vasta