Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

GetJPI, instaklled image: no version?

 
SOLVED
Go to solution
Hoff
Honored Contributor

Re: GetJPI, instaklled image: no version?

It's equally easy (and fully supported) to declare and provide values for one or more (external) symbols in via the linker options file; as declarations of externals. And yes, the hackery needed to get at the image header and its identification string isn't difficult, FWIW...
Highlighted
H.Becker
Honored Contributor

Re: GetJPI, instaklled image: no version?

The SMOP to fetch the identification string does not work on I64: the string is not in the memory (that part of the image file is not read/mapped by the image activator).

The C "globalvalue unsigned int my_ident;" and the linker option "symbol=my_ident,%x4711" is an platform-independent way to make an (own) image ident visible to the running program.