need to access static functions as extern

Hello,

I write some instrumentation which needs to call static function from other files.
Is there a way to associate a global name/alias to a static function?

I need to turn the assembly code
.align 16
.type some_static.2467,@function
some_static.2467:
CODE

into

.align 16
.type some_static.2467,@function
some_static.2467:
.align 16
.globl some_extern_alias.2467
.type some_extern_alias.2467,@function
some_extern_alias.2467:
CODE

and now I can call some_extern_alias.2467
Is there a way to perform this automatically in llvm?

Thank you,
Dan

It is in a bitcode module.
What I do and seems to work is change the linkage to external:
F.setLinkage(llvm::GlobalValue::ExternalLinkage);
However I do not understand all the implications of this.
It looks like the name is mangled, probably unique. Is this correct?
If so, it might be OK to simply change the linkage …

Dan