From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,b73a16251aa1bc2a,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-09-04 23:29:47 PST Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!news-feed-2.peachnet.edu!concert!samba.oit.unc.edu!bounce-bounce From: Aubrey Jaffer Newsgroups: comp.os.linux.announce Subject: DLD ported to Linux Followup-To: comp.os.linux.misc Date: 4 Sep 1993 17:10:23 GMT Organization: None Message-ID: <26ai5v$mo9@samba.oit.unc.edu> Reply-To: Aubrey Jaffer NNTP-Posting-Host: calypso.oit.unc.edu Keywords: DLD, dynamic linking Originator: mdw@sunSITE The Dynamic Linking package, DLD-3.2.3 (from prep.ai.mit.edu:pub/gnu/dld-3.2.3.tar.gz), works on Linux (SLS 1.02) with only minor changes. It would probably make sense to make this a shared library, but lacking a man page for ld, I don't know how to do it. ================================================================ diff -rc dld-3.2.3 dld diff -rc dld-3.2.3/defs.h dld/defs.h *** dld-3.2.3/defs.h Thu May 30 07:13:51 1991 --- dld/defs.h Fri Sep 3 00:46:27 1993 *************** *** 29,34 **** --- 29,40 ---- #include #include #include "dld.h" + + /* added by jaffer@ai.mit.edu for linux */ + #ifndef N_COMM + #define N_COMM 0 + #endif + /* Each input file, and each library member ("subfile") being loaded, has a `file_entry' structure for it. Only in dld: defs.h~ Only in dld/doc: dld.info diff -rc dld-3.2.3/find_exec.c dld/find_exec.c *** dld-3.2.3/find_exec.c Thu May 30 07:13:53 1991 --- dld/find_exec.c Fri Sep 3 01:17:42 1993 *************** *** 25,30 **** --- 25,33 ---- #include #include #include + #ifdef linux + #include + #endif #define DEFAULT_PATH ".:~/bin::/usr/local/bin:/usr/new:/usr/ucb:/usr/bin:/bin:/usr/hosts" Only in dld: find_exec.c~ diff -rc dld-3.2.3/test/general/read-a.out.c dld/test/general/read-a.out.c *** dld-3.2.3/test/general/read-a.out.c Thu May 30 07:13:37 1991 --- dld/test/general/read-a.out.c Fri Sep 3 01:24:20 1993 *************** *** 28,36 **** perror ("Can't read header"); exit (); } ! printf ("Header information:\nmagic = 0%o, text size = %d, data size = %d\n", header.a_magic, header.a_text, header.a_data); printf ("bss size = %d, syms size = %d, entry point = 0x%x, trsize = %d, drsize = %d\n", header.a_bss, header.a_syms, header.a_entry, header.a_trsize, header.a_drsize); --- 28,37 ---- perror ("Can't read header"); exit (); } ! #ifndef linux printf ("Header information:\nmagic = 0%o, text size = %d, data size = %d\n", header.a_magic, header.a_text, header.a_data); + #endif printf ("bss size = %d, syms size = %d, entry point = 0x%x, trsize = %d, drsize = %d\n", header.a_bss, header.a_syms, header.a_entry, header.a_trsize, header.a_drsize); Only in dld/test/general: read-a.out.c~ diff -rc dld-3.2.3/test/reload/Makefile dld/test/reload/Makefile *** dld-3.2.3/test/reload/Makefile Thu May 30 07:13:34 1991 --- dld/test/reload/Makefile Fri Sep 3 01:15:33 1993 *************** *** 19,23 **** ${CC} ${CFLAGS} reload.o $(LIB) -o reload reload-test: reload-test.o ! ld -r reload-test.o /lib/libc.a -o reload-test --- 19,24 ---- ${CC} ${CFLAGS} reload.o $(LIB) -o reload reload-test: reload-test.o ! # ld -r reload-test.o /lib/libc.a -o reload-test ! ld -r reload-test.o -o reload-test #linux -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu