home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / vmsnet / misc / 761 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.6 KB

  1. Xref: sparky vmsnet.misc:761 vmsnet.internals:1218
  2. Path: sparky!uunet!olivea!news.bbn.com!news.bbn.com!news
  3. From: mjensen@BBN.COM (Martin Jensen)
  4. Newsgroups: vmsnet.misc,vmsnet.internals
  5. Subject: Referencing a globaldef'd variable thru macro rtn
  6. Message-ID: <l9t8nqINNodn@news.bbn.com>
  7. Date: 28 Aug 92 22:04:42 GMT
  8. Reply-To: mjensen@BBN.COM (Martin Jensen)
  9. Distribution: na
  10. Organization: Bolt Beranek and Newman Inc., Cambridge MA
  11. Lines: 33
  12. NNTP-Posting-Host: reliant.bbn.com
  13.  
  14. Greetings VMS folks!
  15.  
  16.     A frustrated Unix hacker (me) needs to know how to code/compile/link
  17.     a macro subroutine in order to properly reference a variable defined
  18.     with globaldef in VAX-C.
  19.  
  20.     The hitch is that the macro object file is linked with a shared
  21.     executable which has the variable definition.
  22.  
  23.     The load map for the shared executable contains the following
  24.     indication in the symbols section:
  25.  
  26.          Symbol          Value
  27.          ------          -----
  28.          G_WATCHDOG_EXIT 00000000-RU
  29.  
  30.     The linker gives me the following warning when I link with the shared
  31.     image:
  32.  
  33. %LINK-I-BASDUERRS, basing image due to errors in relocatable references
  34. %LINK-W-SHRSYMREF, reference to symbol G_WATCHDOG_EXIT is not position independent
  35.     in psect SUBRTNS offset %X00000018
  36.     in module SUBRTNS file NAS_BUILD:[NAS.PUBLIC.V41I_A_DEVL]SUBRTNS.OBJ;2
  37.  
  38.     The macro statment in question is:
  39.  
  40.         cmpl    g_watchdog_exit,r0
  41.  
  42.     Any help appreciated!!!
  43.  
  44. ---   Martin Jensen     \   BBN Communications     \  #include          ---
  45.  ---   mjensen@bbn.com   \   150 CambridgePark Dr.  \  <std.disclaimer>  ---
  46.   ---   (617) 873-4859    \   Cambridge, MA   02140  \                    ---
  47.