Skip to content

Commit c3a8bbf

Browse files
committed
chore: set matching visibility
1 parent 613bc1f commit c3a8bbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/symbol.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ func (c *compilerContext) getGlobal(g *ssa.Global) llvm.Value {
706706
if info.linkName == "machine.rttSerialInstance" {
707707
// Create the symbol alias and make sure neither gets optimized away.
708708
alias := llvm.AddAlias(c.mod, llvmType, 0, llvmGlobal, "_SEGGER_RTT")
709+
alias.SetVisibility(llvm.HiddenVisibility)
709710
llvmutil.AppendToGlobal(c.mod, "llvm.used", alias)
710711
llvmutil.AppendToGlobal(c.mod, "llvm.used", llvmGlobal)
711712
}

0 commit comments

Comments
 (0)