home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- 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
- From: tt@tarzan.jyu.fi (Tapani Tarvainen)
- Subject: Re: cc -N bug?
- In-Reply-To: mjs@fc.hp.com's message of Tue, 17 Nov 1992 22: 22:02 GMT
- Message-ID: <TT.92Nov18083840@tarzan.jyu.fi>
- Originator: tt@tarzan.math.jyu.fi
- Sender: news@jyu.fi (News articles)
- Nntp-Posting-Host: tarzan.math.jyu.fi
- Organization: University of Jyvaskyla
- References: <TT.92Nov17151405@tarzan.jyu.fi> <Bxvsst.97n@fc.sde.hp.com>
- Date: Wed, 18 Nov 1992 06:38:40 GMT
- Lines: 29
-
- In article <Bxvsst.97n@fc.sde.hp.com> mjs@fc.hp.com (Marc Sabatella) writes:
-
- [I wrote:]
- >: When I compile the appended little program (it's byteorder.c from
- >: recent tripwire distribution) in our HP9000/720 running HP-UX 8.07
- >: with the command "cc -N -Wl,-a,archive" it compiles without complaints
- >: (except one "warning 951: Shift of 32 bits or more.") and produces a
- >: normal-looking executable ('file' confirms it's "PA-RISC1.1 executable
- >: -not stripped"), but when I try to execute it, I get "cannot execute"
-
- >From the "ld" man page, iin the 700/800 dependencies section:
-
- > Nonsharable, executable files generated with the -N option cannot be
- > executed via exec(2). Typically, -N is used when rebuilding the
- > kernel or when preparing an image for dynamic loading. For these
- > files, the data segment begins on the next page following the text
- > segment.
-
- So I hadn't RTFM far enough. Sorry for wasting bandwidth.
-
- >Any particular reason you want to use this option?
-
- No, except that it was so given under HP-UX in the "Ported" note that
- accompanied the tripwire 1.0 release. Given all the dumb things I did
- yesterday it may be I've misread that, too, though. :-(
-
- Anyway, my thanks and apologies to everybody who replied.
- --
- Tapani Tarvainen (tt@math.jyu.fi, tarvainen@finjyu.bitnet)
-