glibc/sysdeps
Joseph Myers 4243cbea6d Don't use INTDEF/INTUSE with _dl_argv (bug 14132).
Continuing the removal of the obsolete INTDEF / INTUSE mechanism, this
patch replaces its use for _dl_argv with rtld_hidden_data_def and
rtld_hidden_proto.  Some places in .S files that previously used
_dl_argv_internal or INTUSE(_dl_argv) now use __GI__dl_argv directly
(there are plenty of existing examples of such direct use of __GI_*).

A single place in rtld.c previously used _dl_argv without INTUSE,
apparently accidentally, while the rtld_hidden_proto mechanism avoids
such accidential omissions.  As a consequence, this patch *does*
change the contents of stripped ld.so.  However, the installed
stripped shared libraries are identical to those you get if instead of
this patch you change that single _dl_argv use to use INTUSE, without
any other changes.

Tested for x86_64 (testsuite as well as comparison of installed
stripped shared libraries as described above).

	[BZ #14132]
	* sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
	[IS_IN_rtld] (_dl_argv_internal): Do not declare.
	(rtld_progname): Make macro definition unconditional.
	* elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
	INTDEF.
	(dlmopen_doit): Do not use INTUSE with _dl_argv.
	(dl_main): Likewise.
	* elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
	* sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
	instead of _dl_argv_internal.
	* sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
	__GI__dl_argv instead of INTUSE(_dl_argv).
	* sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
	__GI__dl_argv instead of _dl_argv_internal.
2014-11-04 17:39:39 +00:00
..
aarch64 Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality. 2014-10-24 13:23:12 +00:00
alpha Don't use INTDEF/INTUSE with _dl_argv (bug 14132). 2014-11-04 17:39:39 +00:00
arm ARM: Use movw/movt more when available 2014-10-22 14:20:35 -07:00
generic Don't use INTDEF/INTUSE with _dl_argv (bug 14132). 2014-11-04 17:39:39 +00:00
gnu Add new Linux 3.16 constants to netinet/udp.h. 2014-09-12 12:13:08 +00:00
hppa Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
i386 Fix misdetected Slow_SSE4_2 cpu feature bit (bug 17501) 2014-10-27 10:44:28 +01:00
ia64 NPTL: Clean up THREAD_SYSINFO macros. 2014-10-17 15:03:00 -07:00
ieee754 Fix missing <math_private.h> in ldbl-96 fma 2014-08-04 10:20:20 +02:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
mach Don't use INTVARDEF/INTUSE with __libc_enable_secure (bug 14132). 2014-10-10 11:13:11 +00:00
microblaze Move architecture shlib-versions files to Linux-specific directories. 2014-07-17 14:31:12 +00:00
mips Remove extra whitespace from end of line. 2014-10-01 13:46:51 -07:00
nptl Make internal lock-init macros return void. 2014-10-20 14:13:14 -07:00
posix Remove __libc_readv and __libc_writev function names. 2014-10-30 20:56:34 +00:00
powerpc Don't use INTDEF/INTUSE with _dl_argv (bug 14132). 2014-11-04 17:39:39 +00:00
pthread Restore subdir conditional for tst-timer dependency. 2014-07-03 18:52:51 -07:00
s390 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
sh Remove unnecessary uses of NOT_IN_libc 2014-08-21 10:26:46 +05:30
sparc Fix SPARC atomic_write_barrier. 2014-10-31 12:00:38 +01:00
tile tile: fix copyright header blocks in just-committed files 2014-10-06 13:47:02 -04:00
unix Fix sparc struct fpu definition. 2014-11-01 13:45:02 -07:00
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Run tst-ld-sse-use.sh with bash. 2014-09-29 23:24:37 +00:00
x86_64 Fix misdetected Slow_SSE4_2 cpu feature bit (bug 17501) 2014-10-27 10:44:28 +01:00