home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / help / 3040 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.1 KB  |  34 lines

  1. Newsgroups: gnu.gcc.help
  2. 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
  3. From: rbp@netcom.com (Bob Pasker)
  4. Subject: linking shareable images on VAX/VMS with GCC
  5. Message-ID: <1993Jan27.200935.13397@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Wed, 27 Jan 1993 20:09:35 GMT
  8. Lines: 24
  9.  
  10. i am trying to link a sharable image with an OBJ from a GCC-compiled
  11. program.  
  12.  
  13. the problem i run into is that i cannot seem to make some module-level
  14. variables have the "noshare" psect attribute, which those of you who
  15. have read this far will undoubtably understand the implications. 
  16.  
  17. with the vax-c compiler i simply say:
  18.  
  19.     noshare int foobar.
  20.  
  21.  
  22. of course, i could define the psect options in a linker options file,
  23. but that seems like the long way around.
  24.  
  25. there seem to be some things in <gnu-hacks.h> which will solve the
  26. problem, but i cannot seem to make them work and the info files are
  27. less than clear on the subject.  would some kind soul please enlighten
  28. me?
  29. -- 
  30. -- 
  31. -- bob pasker
  32. -- rbp@netcom.com
  33. --
  34.