home *** CD-ROM | disk | FTP | other *** search
- From: bobm@hpfcso.FC.HP.COM (Bob Montgomery)
- Date: Tue, 17 Nov 1992 21:05:49 GMT
- Subject: Re: cc -N bug?
- Message-ID: <7371468@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- 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
- Newsgroups: comp.sys.hp
- References: <TT.92Nov17151405@tarzan.jyu.fi>
- Lines: 24
-
- In comp.sys.hp, tt@tarzan.jyu.fi (Tapani Tarvainen) writes:
-
- > 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
-
- From the 8.07 cc(1) man page:
-
- -N Cause the output file from the linker to be marked as
- unshareable. For details and system defaults, see
- ld(1).
-
- From the 8.07 ld(1) man page in the Series 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.
-
- At 9.0, the behavior with -N will be different (see your release notes
- when appropriate), but I notice (in my possibly still pre-release
- version) that the ld(1) man page still has the "cannot be executed via
- exec" remark. Sigh.
-
- Bob Montgomery, HP
-