When patching USDT probes, use non-unique names for aliases of weak symbols.
authormarkj <markj@FreeBSD.org>
Fri, 10 Feb 2017 02:01:32 +0000 (02:01 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 10 Feb 2017 02:01:32 +0000 (02:01 +0000)
commit61246eafd131768698623308e471820b8672ab7f
treeaeafb5914f6f5902237dafafaadaf085c249242e
parent1edbd9d1a6727d8bea4704c50e708b90aba75fbc
When patching USDT probes, use non-unique names for aliases of weak symbols.

Aliases are normally given names that include a key that's unique for each
input object file. This, for example, ensures that aliases for identically
named local symbols in different object files don't conflict. However, in
some cases the static linker will leave an undefined alias after merging
identical weak symbols, resulting in a link error. A non-unique name allows
the aliases to be merged as well.

PR: 216871
X-MFC With: r313262
cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c