VMS: use selective search when linking with shareable images
authorRichard Levitte <levitte@openssl.org>
Sat, 1 Oct 2022 09:18:57 +0000 (11:18 +0200)
committerHugo Landau <hlandau@openssl.org>
Tue, 4 Oct 2022 10:52:11 +0000 (11:52 +0100)
commitc62a9cd720eccdbb388890ee4a36801d01315be4
treed62d58063f54f7f3008dc8b8b0a74e55db9991e4
parent0b3867634f74f6cb7b60b3a0adde396421207214
VMS: use selective search when linking with shareable images

VMS linking complains a lot about multiply defined symbols unless told
otherwise, especially when shareable images are involved.  For example, this
involves the legacy provider, where there are overriding implementations of
certain ERR functions.

To quiet the linker down, we need to say that symbols should be searched
selectively in shareable images.

However, that's not quite enough.  The order in which the VMS linker
processes files isn't necessarily top to bottom as given on the command line
or the option file(s), which may result in some symbols appearing undefined,
even though they are.  To remedy that, it's necessary to explicitly include
all object files and object libraries into a cluster, thus ensuring that
they will be processed first.  This allows the search for remaining symbol
references to be done in the as desired in the shareable images that follow.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19327)
Configurations/descrip.mms.tmpl