home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13038 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!news.funet.fi!network.jyu.fi!tarzan!tt
  3. From: tt@tarzan.jyu.fi (Tapani Tarvainen)
  4. Subject: Re: cc -N bug?
  5. In-Reply-To: mjs@fc.hp.com's message of Tue, 17 Nov 1992 22: 22:02 GMT
  6. Message-ID: <TT.92Nov18083840@tarzan.jyu.fi>
  7. Originator: tt@tarzan.math.jyu.fi
  8. Sender: news@jyu.fi (News articles)
  9. Nntp-Posting-Host: tarzan.math.jyu.fi
  10. Organization: University of Jyvaskyla
  11. References: <TT.92Nov17151405@tarzan.jyu.fi> <Bxvsst.97n@fc.sde.hp.com>
  12. Date: Wed, 18 Nov 1992 06:38:40 GMT
  13. Lines: 29
  14.  
  15. In article <Bxvsst.97n@fc.sde.hp.com> mjs@fc.hp.com (Marc Sabatella) writes:
  16.  
  17. [I wrote:]
  18. >: When I compile the appended little program (it's byteorder.c from
  19. >: recent tripwire distribution) in our HP9000/720 running HP-UX 8.07
  20. >: with the command "cc -N -Wl,-a,archive" it compiles without complaints
  21. >: (except one "warning 951: Shift of 32 bits or more.") and produces a
  22. >: normal-looking executable ('file' confirms it's "PA-RISC1.1 executable
  23. >: -not stripped"), but when I try to execute it, I get "cannot execute"
  24.  
  25. >From the "ld" man page, iin the 700/800 dependencies section:
  26.  
  27. >     Nonsharable, executable files generated with the -N option cannot be
  28. >     executed via exec(2).  Typically, -N is used when rebuilding the
  29. >     kernel or when preparing an image for dynamic loading. For these
  30. >     files, the data segment begins on the next page following the text
  31. >     segment.
  32.  
  33. So I hadn't RTFM far enough.  Sorry for wasting bandwidth.
  34.  
  35. >Any particular reason you want to use this option?
  36.  
  37. No, except that it was so given under HP-UX in the "Ported" note that
  38. accompanied the tripwire 1.0 release.  Given all the dumb things I did
  39. yesterday it may be I've misread that, too, though. :-(
  40.  
  41. Anyway, my thanks and apologies to everybody who replied.
  42. --
  43. Tapani Tarvainen  (tt@math.jyu.fi, tarvainen@finjyu.bitnet)
  44.