summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/Makefile
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-04-12 06:45:40 +0000
committerkib <kib@FreeBSD.org>2015-04-12 06:45:40 +0000
commit39372044850f47dd4bea491cc717b227b8214a46 (patch)
tree44179ca0f62fcdabf76a69020223ce74137e5250 /libexec/rtld-elf/Makefile
parent0fe937192c3bb4e05e924beb5bbc3749efc648cc (diff)
downloadFreeBSD-src-39372044850f47dd4bea491cc717b227b8214a46.zip
FreeBSD-src-39372044850f47dd4bea491cc717b227b8214a46.tar.gz
MFC r280816:
Change default visibility for rtld to hidden, on x86.
Diffstat (limited to 'libexec/rtld-elf/Makefile')
-rw-r--r--libexec/rtld-elf/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index 66a20d3..8359d36 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -42,6 +42,9 @@ CFLAGS+= -fPIC
CFLAGS+= -fpic
.endif
CFLAGS+= -DPIC $(DEBUG)
+.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
+CFLAGS+= -fvisibility=hidden
+.endif
LDFLAGS+= -shared -Wl,-Bsymbolic
DPADD= ${LIBC_PIC}
LDADD= -lc_pic
OpenPOWER on IntegriCloud