glibc/elf
Joseph Myers 6bc6bd3b10 Don't use INTVARDEF/INTUSE with __libc_enable_secure (bug 14132).
Continuing the removal of the obsolete INTDEF / INTVARDEF / INTUSE
mechanism, this patch replaces its use for __libc_enable_secure with
the use of rtld_hidden_data_def and rtld_hidden_proto.

Tested for x86_64 that installed stripped shared libraries are
unchanged by the patch.

	[BZ #14132]
	* elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
	instead of INTVARDEF.
	(_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
	* sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
	rtld_hidden_data_def instead of INTVARDEF.
	(_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
	* elf/dl-deps.c (expand_dst): Likewise.
	* elf/dl-load.c (_dl_dst_count): Likewise.
	(_dl_dst_substitute): Likewise.
	(decompose_rpath): Likewise.
	(_dl_init_paths): Likewise.
	(open_path): Likewise.
	(_dl_map_object): Likewise.
	* elf/rtld.c (dl_main): Likewise.
	(process_dl_audit): Likewise.
	(process_envvars): Likewise.
	* include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
	Remove declaration.
	(__libc_enable_secure): Use rtld_hidden_proto.
2014-10-10 11:13:11 +00:00
..
cache.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
chroot_canon.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
circleload1.c
circlemod1.c
circlemod1a.c
circlemod2.c
circlemod2a.c
circlemod3.c
circlemod3a.c
constload1.c
constload2.c
constload3.c
dblload.c
dblloadmod1.c
dblloadmod2.c
dblloadmod3.c
dblunload.c
dep1.c
dep2.c
dep3.c
dep4.c
dl-addr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-brk.c
dl-cache.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-caller.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-close.c Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. 2014-04-03 10:47:14 -07:00
dl-conflict.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-debug.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-deps.c Don't use INTVARDEF/INTUSE with __libc_enable_secure (bug 14132). 2014-10-10 11:13:11 +00:00
dl-dst.h Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-environ.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-error.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-execstack.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-fini.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-fptr.c Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. 2014-04-03 10:47:14 -07:00
dl-hwcaps.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-init.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-iteratephdr.c [BZ #16046] Static dlopen correction fallout fixes. 2014-01-31 17:51:31 +00:00
dl-libc.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-load.c Don't use INTVARDEF/INTUSE with __libc_enable_secure (bug 14132). 2014-10-10 11:13:11 +00:00
dl-load.h Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. 2014-04-03 10:47:14 -07:00
dl-lookup.c Remove unnecessarily nested function in do_lookup_unique. 2014-10-08 15:18:02 -07:00
dl-map-segments.h Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. 2014-04-03 10:47:14 -07:00
dl-minimal.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-misc.c Revert "Patch 2/4 of the effort to make TLS access async-signal-safe." 2014-02-06 08:46:20 +10:00
dl-object.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-open.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-origin.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-profile.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-profstub.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-reloc.c Correctly size profiling reloc table (bug 17411) 2014-09-29 14:15:02 -04:00
dl-runtime.c Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
dl-sbrk.c
dl-scope.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-support.c Rely on HP_TIMING_AVAIL implies HP_SMALL_TIMING_AVAIL 2014-07-03 08:38:41 -07:00
dl-sym.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-symaddr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-sysdep.c Don't use INTVARDEF/INTUSE with __libc_enable_secure (bug 14132). 2014-10-10 11:13:11 +00:00
dl-tls.c BZ #16613: Support TLS in audit libraries. 2014-02-25 13:18:15 -05:00
dl-trampoline.c
dl-tsd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dl-unmap-segments.h Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. 2014-04-03 10:47:14 -07:00
dl-version.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-writev.h Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
do-rel.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dynamic-link.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
elf.h Correct DT_PPC64_NUM 2014-07-14 21:17:32 +09:30
enbl-secure.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
failobj.c
filter.c
filtmod1.c
filtmod2.c
firstobj.c
gen-trusted-dirs.awk
genrtldtbl.awk
get-dynamic-info.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
global.c
globalmod1.c
ifuncdep1.c
ifuncdep1pic.c
ifuncdep2.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
ifuncdep2pic.c
ifuncdep5.c
ifuncdep5pic.c
ifuncmain1.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
ifuncmain1pic.c
ifuncmain1picstatic.c
ifuncmain1pie.c
ifuncmain1static.c
ifuncmain1staticpic.c
ifuncmain1staticpie.c
ifuncmain1vis.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
ifuncmain1vispic.c
ifuncmain1vispie.c
ifuncmain2.c
ifuncmain2pic.c
ifuncmain2picstatic.c
ifuncmain2static.c
ifuncmain3.c
ifuncmain4.c
ifuncmain4picstatic.c
ifuncmain4static.c
ifuncmain5.c
ifuncmain5pic.c
ifuncmain5picstatic.c
ifuncmain5pie.c
ifuncmain5static.c
ifuncmain5staticpic.c
ifuncmain6pie.c
ifuncmain7.c
ifuncmain7pic.c
ifuncmain7picstatic.c
ifuncmain7pie.c
ifuncmain7static.c
ifuncmod1.c
ifuncmod3.c
ifuncmod5.c
ifuncmod6.c
initfirst.c
interp.c Remove CFLAGS for interp.c 2014-09-16 22:20:45 +05:30
lateglobal.c
ldconfig.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
ldd.bash.in Update remaining copyright dates 2014-01-01 22:02:55 +10:00
link.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
loadfail.c
loadtest.c
ltglobmod1.c
ltglobmod2.c
Makefile Remove CFLAGS for interp.c 2014-09-16 22:20:45 +05:30
multiload.c
neededobj1.c
neededobj2.c
neededobj3.c
neededobj4.c
neededobj5.c
neededobj6.c
neededtest2.c
neededtest3.c
neededtest4.c
neededtest.c
next.c
nextmod1.c
nextmod2.c
nodel2mod1.c
nodel2mod2.c
nodel2mod3.c
nodelete2.c
nodelete.c
nodelmod1.c
nodelmod2.c
nodelmod3.c
nodelmod4.c
nodlopen2.c
nodlopen.c
nodlopenmod2.c
nodlopenmod.c
noload.c
order2.c
order2mod1.c
order2mod2.c
order2mod3.c
order2mod4.c
order.c
origtest.c
pathoptobj.c
pldd-xx.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pldd.c Fix race conditions in pldd that may leave the process stopped after detaching 2014-02-25 09:29:34 +01:00
preloadtest.c
readelflib.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
readlib.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
reldep2.c
reldep3.c Fix typos. 2013-08-21 19:48:48 +02:00
reldep4.c
reldep4mod1.c
reldep4mod2.c
reldep4mod3.c
reldep4mod4.c
reldep5.c
reldep6.c
reldep6mod0.c
reldep6mod1.c
reldep6mod2.c
reldep6mod3.c
reldep6mod4.c
reldep7.c
reldep7mod1.c
reldep7mod2.c
reldep8.c
reldep8mod1.c
reldep8mod2.c
reldep8mod3.c
reldep9.c
reldep9mod1.c
reldep9mod2.c
reldep9mod3.c
reldep.c Fix typos. 2013-08-21 19:48:48 +02:00
reldepmod1.c
reldepmod2.c
reldepmod3.c
reldepmod4.c
reldepmod5.c
reldepmod6.c
resolvfail.c
restest1.c
restest2.c
rtld-debugger-interface.txt
rtld-Rules Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
rtld.c Don't use INTVARDEF/INTUSE with __libc_enable_secure (bug 14132). 2014-10-10 11:13:11 +00:00
setup-vdso.h Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
sln.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sofini.c
soinit.c
sotruss-lib.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sotruss.sh sotruss: drop ksh support and add basic POSIX shell support 2014-03-13 19:56:01 -04:00
sprof.c Update remaining copyright dates 2014-01-01 22:02:55 +10:00
static-stubs.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
testobj1_1.c
testobj1.c
testobj2.c
testobj3.c
testobj4.c
testobj5.c
testobj6.c
testobj.h Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
tls-macros.h
tlsdeschtab.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-addr1.c
tst-align2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-align.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-alignmod2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-alignmod.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-array1-static.c
tst-array1.c
tst-array1.exp
tst-array2.c
tst-array2.exp
tst-array2dep.c
tst-array3.c
tst-array4.c
tst-array4.exp
tst-array5-static.c
tst-array5-static.exp
tst-array5.c
tst-array5.exp
tst-array5dep.c
tst-audit1.c
tst-audit2.c
tst-audit8.c
tst-audit9.c BZ #16613: Support TLS in audit libraries. 2014-02-25 13:18:15 -05:00
tst-auditmod1.c
tst-auditmod9a.c BZ #16613: Support TLS in audit libraries. 2014-02-25 13:18:15 -05:00
tst-auditmod9b.c BZ #16613: Support TLS in audit libraries. 2014-02-25 13:18:15 -05:00
tst-auxv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-deep1.c
tst-deep1mod1.c
tst-deep1mod2.c
tst-deep1mod3.c
tst-dl-iter-static.c [BZ #16046] dl_iterate_phdr static executable test 2014-06-20 21:52:53 +01:00
tst-dlmodcount.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-dlmopen1.c
tst-dlmopen1mod.c
tst-dlmopen2.c
tst-dlmopen3.c
tst-dlopen-aout.c Address post-commit patch comments. 2014-03-24 18:22:32 -07:00
tst-dlopenrpath.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-dlopenrpathmod.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-execstack-mod.c
tst-execstack-needed.c
tst-execstack-prog.c
tst-execstack.c
tst-global1.c
tst-initorder2.c
tst-initorder2.exp
tst-initorder.c
tst-initorder.exp
tst-initordera1.c
tst-initordera2.c
tst-initordera3.c
tst-initordera4.c
tst-initorderb1.c
tst-initorderb2.c
tst-leaks1-static.c
tst-leaks1.c
tst-null-argv-lib.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-null-argv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-order-a1.c
tst-order-a2.c
tst-order-a3.c
tst-order-a4.c
tst-order-b1.c
tst-order-b2.c
tst-order-main.c
tst-pathopt.c
tst-pathopt.sh Don't require test wrappers to preserve environment variables, use more consistent environment. 2014-06-06 22:19:27 +00:00
tst-pie1.c
tst-pie2.c Add missing elf/tst-pie2.c -- should have been in 2014-03-13 08:19:18 -07:00
tst-piemod1.c
tst-ptrguard1-static.c BZ #15754: CVE-2013-4788 2013-09-23 00:52:09 -04:00
tst-ptrguard1.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-relsort1.c
tst-relsort1mod1.c
tst-relsort1mod2.c
tst-rtld-load-self.sh Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-stackguard1-static.c
tst-stackguard1.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-thrlock.c
tst-tls1-static.c
tst-tls1.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls2-static.c
tst-tls2.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls3.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls4.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls5.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls6.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls7.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls8.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls9-static.c
tst-tls9.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls10.c
tst-tls10.h Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls11.c
tst-tls12.c
tst-tls13.c
tst-tls14.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tls15.c
tst-tls16.c
tst-tls17.c
tst-tls18.c
tst-tls19.c
tst-tls19mod1.c
tst-tls19mod2.c
tst-tls19mod3.c
tst-tls-dlinfo.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod1.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod2.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod3.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod4.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod5.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod6.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod7.c
tst-tlsmod8.c
tst-tlsmod9.c
tst-tlsmod10.c
tst-tlsmod11.c
tst-tlsmod12.c
tst-tlsmod13.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod13a.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod14a.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod14b.c
tst-tlsmod15a.c
tst-tlsmod15b.c
tst-tlsmod16a.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod16b.c Don't include tls.h in test cases 2013-10-18 19:45:36 +05:30
tst-tlsmod17a.c
tst-tlsmod17b.c
tst-tlsmod18a.c
tst-unique1.c
tst-unique1mod1.c
tst-unique1mod2.c
tst-unique2.c
tst-unique2mod1.c
tst-unique2mod2.c
tst-unique3.cc
tst-unique3.h
tst-unique3lib2.cc
tst-unique3lib.cc
tst-unique4.cc
tst-unique4.h
tst-unique4lib.cc
unload2.c
unload2dep.c
unload2mod.c
unload3.c
unload3mod1.c
unload3mod2.c
unload3mod3.c
unload3mod4.c
unload4.c
unload4mod1.c
unload4mod2.c
unload4mod3.c
unload4mod4.c
unload5.c
unload6.c
unload6mod1.c
unload6mod2.c
unload6mod3.c
unload7.c
unload7mod1.c
unload7mod2.c
unload8.c
unload8mod1.c
unload8mod1x.c
unload8mod2.c
unload8mod3.c
unload.c
unloadmod.c
Versions Add empty GLIBC_2.2.5 version to elf/Versions. 2014-03-25 21:54:09 +00:00
vismain.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
vismod1.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
vismod2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
vismod3.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
vismod.h