home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.help
- Path: sparky!uunet!uunet.ca!canrem!telly!utzoo!torn!cs.utexas.edu!sdd.hp.com!saimiri.primate.wisc.edu!ames!decwrl!csus.edu!netcom.com!rbp
- From: rbp@netcom.com (Bob Pasker)
- Subject: linking shareable images on VAX/VMS with GCC
- Message-ID: <1993Jan27.200935.13397@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Wed, 27 Jan 1993 20:09:35 GMT
- Lines: 24
-
- i am trying to link a sharable image with an OBJ from a GCC-compiled
- program.
-
- the problem i run into is that i cannot seem to make some module-level
- variables have the "noshare" psect attribute, which those of you who
- have read this far will undoubtably understand the implications.
-
- with the vax-c compiler i simply say:
-
- noshare int foobar.
-
-
- of course, i could define the psect options in a linker options file,
- but that seems like the long way around.
-
- there seem to be some things in <gnu-hacks.h> which will solve the
- problem, but i cannot seem to make them work and the info files are
- less than clear on the subject. would some kind soul please enlighten
- me?
- --
- --
- -- bob pasker
- -- rbp@netcom.com
- --
-