svn commit: r331551 - stable/11/cddl/contrib/opensolaris/lib/libdtrace/common
Mark Johnston
markj at FreeBSD.org
Mon Mar 26 15:17:32 UTC 2018
Author: markj
Date: Mon Mar 26 15:17:31 2018
New Revision: 331551
URL: https://svnweb.freebsd.org/changeset/base/331551
Log:
MFC r331222:
Given hidden visibility to symbols referenced by the DOF section.
Modified:
stable/11/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
==============================================================================
--- stable/11/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c Mon Mar 26 15:16:57 2018 (r331550)
+++ stable/11/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c Mon Mar 26 15:17:31 2018 (r331551)
@@ -22,6 +22,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2017-2018 Mark Johnston <markj at FreeBSD.org>
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -274,7 +275,7 @@ prepare_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof,
sym->st_value = 0;
sym->st_size = 0;
sym->st_info = ELF32_ST_INFO(STB_GLOBAL, STT_FUNC);
- sym->st_other = 0;
+ sym->st_other = ELF32_ST_VISIBILITY(STV_HIDDEN);
sym->st_shndx = SHN_UNDEF;
rel++;
@@ -472,7 +473,7 @@ prepare_elf64(dtrace_hdl_t *dtp, const dof_hdr_t *dof,
sym->st_value = 0;
sym->st_size = 0;
sym->st_info = GELF_ST_INFO(STB_GLOBAL, STT_FUNC);
- sym->st_other = 0;
+ sym->st_other = ELF64_ST_VISIBILITY(STV_HIDDEN);
sym->st_shndx = SHN_UNDEF;
rel++;
More information about the svn-src-stable-11
mailing list