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

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!mjs
  3. From: mjs@fc.hp.com (Marc Sabatella)
  4. Subject: Re: cc -N bug?
  5. Message-ID: <Bxvsst.97n@fc.sde.hp.com>
  6. Sender: news@fc.sde.hp.com (Notes Administrator)
  7. Reply-To: marc@hpmonk.fc.hp.com
  8. Organization: Hewlett-Packard Company
  9. X-Newsreader: TIN [version 1.1.4 PL6]
  10. References: <TT.92Nov17151405@tarzan.jyu.fi>
  11. Date: Tue, 17 Nov 1992 22:22:02 GMT
  12. Lines: 29
  13.  
  14. : When I compile the appended little program (it's byteorder.c from
  15. : recent tripwire distribution) in our HP9000/720 running HP-UX 8.07
  16. : with the command "cc -N -Wl,-a,archive" it compiles without complaints
  17. : (except one "warning 951: Shift of 32 bits or more.") and produces a
  18. : normal-looking executable ('file' confirms it's "PA-RISC1.1 executable
  19. : -not stripped"), but when I try to execute it, I get "cannot execute"
  20.  
  21. From the "ld" man page, iin the 700/800 dependencies section:
  22.  
  23.       Nonsharable, executable files generated with the -N option cannot be
  24.       executed via exec(2).  Typically, -N is used when rebuilding the
  25.       kernel or when preparing an image for dynamic loading. For these
  26.       files, the data segment begins on the next page following the text
  27.       segment.
  28.  
  29. Any particular reason you want to use this option?
  30.  
  31. --
  32. Marc Sabatella
  33. marc@hpmonk.fc.hp.com
  34. --
  35. Amendment 2 Is Legalized Discrimination - Shame On You, Colorado
  36. --
  37. "Neither the State of Colorado ... nor any of its municipalities ... shall ...
  38.  enforce any ... ordinance ... whereby homosexual, lesbian, or bisexual
  39.  orientation ... shall ... be the basis of ... any ... claim of discrimination"
  40. --
  41. All opinions expressed herein are my personal ones
  42. and do not necessarily reflect those of HP or anyone else.
  43.