diff options
author | kib <kib@FreeBSD.org> | 2015-03-29 18:53:21 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-03-29 18:53:21 +0000 |
commit | 563a44c171b6928feb0dfd24a0b94fac15e0c13f (patch) | |
tree | 12ce96618cdb26acb5fccabba2ccac920c386178 /libexec/rtld-elf/Makefile | |
parent | 951b0c97e412e46714a4cdd077cb7e81ab4f9994 (diff) | |
download | FreeBSD-src-563a44c171b6928feb0dfd24a0b94fac15e0c13f.zip FreeBSD-src-563a44c171b6928feb0dfd24a0b94fac15e0c13f.tar.gz |
Change compiler setting to make default visibility of the symbols for
rtld on x86 to be hidden. This is a micro-optimization, which allows
intrinsic references inside rtld to be handled without indirection
through PLT. The visibility of rtld symbols for other objects in the
symbol namespace is controlled by a version script.
Reviewed by: kan, jilles
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Diffstat (limited to 'libexec/rtld-elf/Makefile')
-rw-r--r-- | libexec/rtld-elf/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 09dc4ab..2bed4c7 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 LIBADD= c_pic |