home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13020 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.4 KB

  1. From: bobm@hpfcso.FC.HP.COM (Bob Montgomery)
  2. Date: Tue, 17 Nov 1992 21:05:49 GMT
  3. Subject: Re: cc -N bug?
  4. Message-ID: <7371468@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!cupnews0.cup.hp.com!news1.boi.hp.com!hp-pcd!hpfcso!bobm
  7. Newsgroups: comp.sys.hp
  8. References: <TT.92Nov17151405@tarzan.jyu.fi>
  9. Lines: 24
  10.  
  11. In comp.sys.hp, tt@tarzan.jyu.fi (Tapani Tarvainen) writes:
  12.  
  13. > When I compile the appended little program (it's byteorder.c from
  14. > recent tripwire distribution) in our HP9000/720 running HP-UX 8.07
  15. > with the command "cc -N -Wl,-a,archive" it compiles without complaints
  16.  
  17. From the 8.07 cc(1) man page:
  18.  
  19.       -N             Cause the output file from the linker to be marked as
  20.                      unshareable.  For details and system defaults, see
  21.                      ld(1).
  22.  
  23. From the 8.07 ld(1) man page in the Series 700/800 Dependencies section:
  24.  
  25.            Nonsharable, executable files generated with the -N option cannot
  26.            be executed via exec(2).  Typically, -N is used when rebuilding
  27.            the kernel or when preparing an image for dynamic loading.
  28.  
  29. At 9.0, the behavior with -N will be different (see your release notes
  30. when appropriate), but I notice (in my possibly still pre-release
  31. version) that the ld(1) man page still has the "cannot be executed via
  32. exec" remark.  Sigh.
  33.  
  34. Bob Montgomery, HP
  35.