It is currently Thu, 20 Jan 2022 10:27:45 GMT



 
Author Message
 DLD ported to Linux
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 jaf...@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 <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-annou...@tc.cornell.edu



 Thu, 22 Feb 1996 01:10:23 GMT   
 
   [ 1 post ] 

Similar Threads

1. DLD Linux kppp to A-Online ???

2. DLD Linux installation problem ...

3. LinuX-(DLD)-Prob with LaTeX

4. Configuring TCP/IP on DLD Linux

5. dld for Linux?

6. dld.c for ELF Linux?

7. GNU dld for Linux?

8. DLD and Linux


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software