home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!mjs
- From: mjs@fc.hp.com (Marc Sabatella)
- Subject: Re: cc -N bug?
- Message-ID: <Bxvsst.97n@fc.sde.hp.com>
- Sender: news@fc.sde.hp.com (Notes Administrator)
- Reply-To: marc@hpmonk.fc.hp.com
- Organization: Hewlett-Packard Company
- X-Newsreader: TIN [version 1.1.4 PL6]
- References: <TT.92Nov17151405@tarzan.jyu.fi>
- Date: Tue, 17 Nov 1992 22:22:02 GMT
- Lines: 29
-
- : 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.
-
- Any particular reason you want to use this option?
-
- --
- Marc Sabatella
- marc@hpmonk.fc.hp.com
- --
- Amendment 2 Is Legalized Discrimination - Shame On You, Colorado
- --
- "Neither the State of Colorado ... nor any of its municipalities ... shall ...
- enforce any ... ordinance ... whereby homosexual, lesbian, or bisexual
- orientation ... shall ... be the basis of ... any ... claim of discrimination"
- --
- All opinions expressed herein are my personal ones
- and do not necessarily reflect those of HP or anyone else.
-