home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / unix / amiga / 820 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: unsw.edu.au!usenet
  2. From: lester@cse.unsw.edu.au (Lester Gock-Young)
  3. Newsgroups: comp.unix.amiga
  4. Subject: dynamic linking under Linux/68k
  5. Date: 9 Apr 1996 14:17:25 GMT
  6. Organization: ABC Information Technology (Communications)
  7. Message-ID: <4kdrhl$346@mirv.unsw.edu.au>
  8. Reply-To: lester@cse.unsw.edu.au (Lester Gock-Young)
  9. NNTP-Posting-Host: modem.circus.cse.unsw.edu.au
  10.  
  11. Hi,
  12.  
  13. I've been trying to link my programs against dynamic link libraries under
  14. Linux/68k, and have been getting some wierd behaviour from ld.
  15.  
  16. ld seems to insist on linking my hello world program against libc.a rather
  17. than libc.so.5, causing it to be 50-odd K stripped. In contrast, the same
  18. piece of code is 2.5K stripped under Linux/i386!! Intel code is not *that*
  19. much more efficient that Motorola code, surely ...
  20.  
  21. To compile, I did:
  22.  
  23.    gcc -o hello hello.c
  24.  
  25. I then ran
  26.  
  27.    strings -a hello | grep lib
  28.  
  29. and found no references to libc.so.5 or any other shared library. The
  30. Linux/i386 code had a reference to libc.so.5.
  31.  
  32. What's going on?! I'm using binutils-2.6, gcc-2.7.2, ld.so-1.7.12,
  33. libc-5.0.9 installed over watchtower-fs.
  34.  
  35. thanks for any help,
  36.  
  37. Lester
  38. --
  39. Lester Gock-Young
  40. ABC Information Technology (Communications), Sydney, Australia
  41. (loitering at lester@cse.unsw.edu.au  http://www.cse.unsw.edu.au/~lester/)
  42.