home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky vmsnet.misc:761 vmsnet.internals:1218
- Path: sparky!uunet!olivea!news.bbn.com!news.bbn.com!news
- From: mjensen@BBN.COM (Martin Jensen)
- Newsgroups: vmsnet.misc,vmsnet.internals
- Subject: Referencing a globaldef'd variable thru macro rtn
- Message-ID: <l9t8nqINNodn@news.bbn.com>
- Date: 28 Aug 92 22:04:42 GMT
- Reply-To: mjensen@BBN.COM (Martin Jensen)
- Distribution: na
- Organization: Bolt Beranek and Newman Inc., Cambridge MA
- Lines: 33
- NNTP-Posting-Host: reliant.bbn.com
-
- Greetings VMS folks!
-
- A frustrated Unix hacker (me) needs to know how to code/compile/link
- a macro subroutine in order to properly reference a variable defined
- with globaldef in VAX-C.
-
- The hitch is that the macro object file is linked with a shared
- executable which has the variable definition.
-
- The load map for the shared executable contains the following
- indication in the symbols section:
-
- Symbol Value
- ------ -----
- G_WATCHDOG_EXIT 00000000-RU
-
- The linker gives me the following warning when I link with the shared
- image:
-
- %LINK-I-BASDUERRS, basing image due to errors in relocatable references
- %LINK-W-SHRSYMREF, reference to symbol G_WATCHDOG_EXIT is not position independent
- in psect SUBRTNS offset %X00000018
- in module SUBRTNS file NAS_BUILD:[NAS.PUBLIC.V41I_A_DEVL]SUBRTNS.OBJ;2
-
- The macro statment in question is:
-
- cmpl g_watchdog_exit,r0
-
- Any help appreciated!!!
-
- --- Martin Jensen \ BBN Communications \ #include ---
- --- mjensen@bbn.com \ 150 CambridgePark Dr. \ <std.disclaimer> ---
- --- (617) 873-4859 \ Cambridge, MA 02140 \ ---
-