summaryrefslogtreecommitdiffstats
path: root/cddl/contrib
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2018-03-26 15:17:31 +0000
committermarkj <markj@FreeBSD.org>2018-03-26 15:17:31 +0000
commit79acf655e7291cdff5810631629e0b1d8c5fbecf (patch)
treede8177f2e6fa8a7eb906b74f5b82352ca6cb9eea /cddl/contrib
parent0c79ac4acedc04ea7762e1e240d95fd45235621c (diff)
downloadFreeBSD-src-79acf655e7291cdff5810631629e0b1d8c5fbecf.zip
FreeBSD-src-79acf655e7291cdff5810631629e0b1d8c5fbecf.tar.gz
MFC r331222:
Given hidden visibility to symbols referenced by the DOF section.
Diffstat (limited to 'cddl/contrib')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
index 1da91f0..e418bf6 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
@@ -22,6 +22,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2017-2018 Mark Johnston <markj@FreeBSD.org>
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -274,7 +275,7 @@ prepare_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof, dof_elf32_t *dep)
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, dof_elf64_t *dep)
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++;
OpenPOWER on IntegriCloud