* DLD ported to Linux
@ 1993-09-04 17:10 Aubrey Jaffer
0 siblings, 0 replies; only message in thread
From: Aubrey Jaffer @ 1993-09-04 17:10 UTC (permalink / raw)
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 <sys/param.h>
#include <setjmp.h>
#include "dld.h"
+
+ /* added by jaffer@ai.mit.edu for linux */
+ #ifndef N_COMM
+ #define N_COMM 0
+ #endif
+
\f
/* 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 <sys/file.h>
#include <sys/param.h>
#include <strings.h>
+ #ifdef linux
+ #include <unistd.h>
+ #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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-09-04 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-09-04 17:10 DLD ported to Linux Aubrey Jaffer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox