Commit Graph

553 Commits

Author SHA1 Message Date
Mike Frysinger 0cae3f4b03 change ifunc assembly test to a link test
The test currently tests the binutils frontend support which passes for
all versions of binutils we currently require (2.20+).  It doesn't test
the backend which is required for ifunc to actually work, and which most
targets don't yet support.

Change the assembly code so that when we link it, we get a file that has
ifunc relocations if the backend supports it.  That way we can test to
see if binutils supports everything we need.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-10-24 17:01:13 -04:00
Mike Frysinger 8175a2532b drop -q flag when using grep
We don't currently want to rely on the -q option to grep.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-10-24 13:00:48 -04:00
Joseph Myers 728e272aec Remove relics of support for configuring in the source directory. 2012-10-19 20:03:12 +00:00
Joseph Myers 1e4a95361c Use $CXX not cc1plus to locate C++ headers. 2012-10-10 22:07:36 +00:00
Roland McGrath f57f805541 Clean up conditionalize of ld.so.cache support. 2012-10-03 16:13:14 -07:00
H.J. Lu 6551399088 Remove $(have-cpp-asm-debuginfo) check 2012-09-15 13:08:45 -07:00
Allan McRae c4e85184d2 Improve C++ header location detection (bug 13966) 2012-09-06 00:16:24 +10:00
Allan McRae 0786794f3a Check for gawk >= 3.0 (bug 13412) 2012-09-02 09:30:18 +10:00
Roland McGrath c53d909c80 Add --disable-build-nscd configure option. 2012-08-22 13:35:55 -07:00
Roland McGrath 3cc3ef96d6 BZ#13696: Add --disable-nscd configure option. 2012-08-22 13:31:12 -07:00
Dmitry V. Levin 07e5155066 Fix sed configure check for newer sed --version output. 2012-08-22 12:58:18 -07:00
Roland McGrath c91c505f22 Make sysheaders available in config.make. 2012-08-17 14:05:53 -07:00
Marek Polacek b67e9372b2 Get rid of ASM_TYPE_DIRECTIVE{,_PREFIX}. 2012-08-02 21:04:29 +02:00
Thomas Schwinge 576338111a configure.in <sysdeps resolving>: Correct printing Implies_before. 2012-07-23 12:27:12 +02:00
Marek Polacek 7b8e0d49cb Get rid of ASM_GLOBAL_DIRECTIVE. 2012-07-10 14:30:24 +02:00
Roland McGrath 4248b1b1cf Respect --localstatedir for /var/db parent directory. 2012-06-22 10:11:07 -07:00
Joseph Myers 4da0431d5f Weaken PIE configure test to a compile test. 2012-05-30 09:50:40 +00:00
H.J. Lu 918b56067a Don't use header files in glibc configure 2012-05-25 14:16:19 -07:00
Roland McGrath 3a097cc7a1 Add --enable-systemtap configuration to define static probe points. 2012-05-25 13:40:20 -07:00
Joseph Myers 59f0c22ed2 Filter out unknown symbols in stack-protector test. 2012-05-21 23:26:27 +00:00
Roland McGrath 30b99d798f BZ#10375: Configure magic to use -fno-stack-protector if needed. 2012-05-16 16:22:50 -07:00
Roland McGrath 61653dfb81 BZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed. 2012-05-16 16:20:59 -07:00
Joseph Myers 6a3951a036 Update Texinfo version requirement. 2012-05-16 18:50:39 +00:00
Roland McGrath ba75122dd9 configure change to handle Implies-{before,after} files 2012-05-15 11:04:22 -07:00
Andreas Jaeger 021db4be6f Make sunrpc code usable again
New configure option --enable-obsolete-rpc makes the deprecated RPC
  headers and functions available at compile time as they were before
  version 2.14.  This option will be removed at some time in the future
  after the TI-RPC library becomes fully sufficient for the needs of
  existing applications.
2012-05-10 20:19:53 +02:00
Andreas Jaeger ecf0ebfb04 Always run check-abi
Remove the configure options for running of check-abi and always
run it as part of the testsuite
2012-04-29 06:36:30 +02:00
Joseph Myers 2ce4f01533 Don't handle unsupported OSes in configure (base_os settings). 2012-04-26 18:42:42 +00:00
Joseph Myers a3cc4f48e9 Remove --as-needed configure test. 2012-04-25 17:02:33 +00:00
Joseph Myers 3a533ca370 Don't handle libgcc_s suffixes. 2012-04-24 10:22:45 +00:00
Andreas Jaeger 51d8bb8f3b Regenerate configure files 2012-03-28 09:37:58 +02:00
Andreas Schwab 7998fa7899 Disable use of FMA instructions in branred 2012-03-21 23:58:50 +01:00
Thomas Schwinge 1722813295 Weaken -fstack-protector configure test to a compile test. 2012-03-21 17:51:08 +00:00
Joseph Myers 40b601fbb7 Use autoconf macro for testing compiler options with empty input. 2012-03-21 16:33:57 +00:00
Roland McGrath 10a803e0a2 Use sysdeps/*/preconfigure fragments from main source tree. 2012-03-16 11:12:50 -07:00
David S. Miller eae47a3618 Add framework for using sparc VIS3 instructions, use it for copysign/signbit.
* sysdeps/sparc/configure.in: New file.
	* sysdeps/sparc/configure: Generate.
	* configure.in (libc_cv_sparc_as_vis3): Substitute.
	* configure: Regenerate.
	* config.h.in (HAVE_AS_VIS3_SUPPORT): New.
	* config.make.in (have-as-vis3): New.
	* sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
	available use -Av9d instead of -Av9a.
	* sysdeps/sparc/sparc64/Makefile: Likewise.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New file.
	* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
	* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
	* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
	* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
	* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2012-03-14 16:43:09 -07:00
Joseph Myers 07037eeb43 Fix .ctors/.dtors header configure test for bootstrapping. 2012-03-08 00:17:27 +00:00
Joseph Myers bec039bcef Require binutils 2.20 or later. 2012-03-01 21:23:57 +00:00
Joseph Myers 0e7727f71d Require GCC 4.3 or later. 2012-02-27 23:07:59 +00:00
Joseph Myers 6b1d1d46b9 Fix configure logic for disabling multi-arch. 2012-02-25 00:29:19 +00:00
Andreas Schwab 26ecc33a02 Remove have-initfini and need-nopic-initfini 2012-02-08 20:31:55 +01:00
Joseph Myers 3b1004624e Fix makefile/configure problems with sse2avx changes. 2012-01-30 19:55:15 +00:00
Ulrich Drepper 15cfed3f93 Regenerated 2012-01-08 11:48:44 -05:00
Ulrich Drepper 121766a9d6 Remove pwd tst from configure 2012-01-08 09:31:02 -05:00
Ulrich Drepper 3857022a76 No need for test for __builtin_expect 2012-01-08 09:21:09 -05:00
Ulrich Drepper 5c8e36b478 Forgot to remove AC_SUBST(bonuded) 2012-01-08 07:51:27 -05:00
Ulrich Drepper 215f4bdc5f Remove more unnecessary Alpha and IA-64 configury 2012-01-08 07:47:38 -05:00
Ulrich Drepper 8720d06638 gcc better don't use a signed type for size_t 2012-01-08 07:44:18 -05:00
Ulrich Drepper 51a1d39ce3 Remove last remnants of RANLIB 2012-01-08 07:31:58 -05:00
Ulrich Drepper a0da5fe1e4 More fallout from supporting only ELF 2012-01-08 00:45:01 -05:00
Ulrich Drepper 0269750ca6 Remove non-ELF support 2012-01-07 20:30:26 -05:00
Ulrich Drepper bdeba1354b Remove --enable-omitfp support 2012-01-07 11:29:31 -05:00
Ulrich Drepper dcc9756b5b Remove support in configure for unsupported architectures 2012-01-07 11:13:30 -05:00
Ulrich Drepper 9d65ea3a9b Remove handling of VCs other then git 2011-11-17 12:33:33 -05:00
Ulrich Drepper af968f62f2 Optimize accurate 64-bit routines for FMA4 on x86-64 2011-10-24 20:19:17 -04:00
Andreas Schwab 7872cfb09f Fix searching for C++ system headers for cross compilers 2011-10-15 20:44:10 +02:00
Ulrich Drepper 83cd142045 Remove --wth-tls option, TLS support is required 2011-09-11 15:02:01 -04:00
Ulrich Drepper f318beb800 Fix use of AC_INIT 2011-09-11 12:14:48 -04:00
Ulrich Drepper 3ce1f29594 Cleanup of configuration options
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
Ulrich Drepper 5f69cd2f94 Regenerated 2011-09-08 23:20:47 -04:00
Roland McGrath fd5e21c75d Default to --with-default-link=yes if configure check finds good -shared layout. 2011-07-14 20:50:18 -07:00
Roland McGrath 5c55070081 Use linker --print-output-format option if available. 2011-07-14 20:50:17 -07:00
Roland McGrath 9fa2c03227 Adjust relro test to work around GNU ld limitations. 2011-07-14 19:09:27 -07:00
Roland McGrath defe906180 Fix a braino in new relro configure test. 2011-07-11 18:38:13 -07:00
Roland McGrath 113ddea447 Use an empirical check for .ctors/.dtors -> .init_array/.fini_array magic. 2011-07-09 14:41:39 -07:00
Roland McGrath 574920b446 Rewrite -z relro configure check to be empirical. 2011-07-09 13:55:24 -07:00
Roland McGrath d30cf5bb00 Find readelf with AC_CHECK_TOOL for use in configure tests. 2011-07-09 04:06:34 -07:00
Roland McGrath 1b74661a6b Explicitly remove .gnu.glibc-stub sections with objcopy when not using
linker script.
2011-07-02 15:21:27 -07:00
Roland McGrath f781ef4015 Add --with-default-link configure option. 2011-07-02 15:19:52 -07:00
Ulrich Drepper 9113ea1f3f Remove the --experimental-malloc option
It's well tested, make it the default.
2011-06-28 16:53:01 -04:00
Roland McGrath 62bede1313 Distinguish configure check for .ctors/.dtors header/trailers. 2011-06-27 20:39:05 -07:00
Roland McGrath b68e08db76 Use AC_LANG_PROGRAM in nss-crypt check. 2011-06-10 11:09:12 -07:00
Ulrich Drepper f7d82dc9e0 Fix configure visibility tests 2011-05-21 08:00:14 -04:00
Ulrich Drepper e943389325 Remove use of ranlib. 2011-02-15 14:52:29 -05:00
H.J. Lu 091023f58f Add missing configure patch. 2011-02-02 23:02:50 -05:00
Andreas Schwab 77e8bddff3 Don't override --enable-multi-arch. 2011-01-16 21:29:41 -05:00
H.J. Lu 4a531bb0b3 Remove `.ctors' and `.dtors' output sections 2010-12-24 20:14:37 -05:00
Roland McGrath 090555538d Rejigger header generation for default uname implementation. 2010-08-24 11:56:52 -07:00
Mike Frysinger 84b9230c40 Remove multiarch dirs when gnu indirect is not supported 2010-08-23 07:51:49 -07:00
Roland McGrath 1c7570ff36 BZ #11840: Fix config.cache usage for -fgnu89-inline check. 2010-07-26 12:45:17 -07:00
Ulrich Drepper b08c89d9f3 Use newer autoconf. 2010-07-09 19:25:39 -07:00
H.J. Lu 01f1f5ee8b Pass -mtune=i686 to assembler when compiling for i686 2010-03-04 21:30:17 -08:00
H.J. Lu 6f89d2f30f Enable multiarch whenever possible. 2009-12-23 20:22:46 -08:00
H.J. Lu f450806e22 Handle future binutils versions correctly. 2009-09-28 04:18:09 -07:00
Roland McGrath 7967983fd4 configure tweaks, support $libc_add_on_config_subdirs 2009-09-15 14:14:42 -07:00
H.J. Lu 0549ce8ec1 Support binutils 2.100 and 3.0. 2009-09-08 16:04:30 -07:00
H.J. Lu 4c14c8c348 Support binutils 2.20. 2009-09-05 07:06:19 -07:00
H.J. Lu b0ecde3a63 Add AVX support to ld.so auditing for x86-64. 2009-07-10 12:04:14 -07:00
Ulrich Drepper 415ac3df9b Implement STB_GNU_UNIQUE handling.
Some symbols have to be identified process-wide by their name.  This is
particularly important for some C++ features (e.g., class local static data
and static variables in inline functions).  This cannot completely be
implemented with ELF functionality so far.  The STB_GNU_UNIQUE binding
helps by ensuring the dynamic linker will always use the same definition for
all symbols with the same name and this binding.
2009-07-09 23:52:22 -07:00
H.J. Lu 06e51c8f3d Add SSE4.2 support for strcspn, strpbrk, and strspn on x86-64. 2009-07-03 02:48:56 -07:00
Andreas Schwab c16a054d5e Move AC_CANONICAL_HOST before first use of $host and $build. 2009-05-31 16:54:28 -07:00
Ulrich Drepper 322e23db24 * sysdeps/x86_64/memchr.S: New file. 2009-04-07 06:36:33 +00:00
Ulrich Drepper a152f366dc * sysdeps/x86_64/strlen.S: Optimize by using SSE2 instructions. 2009-04-05 18:49:28 +00:00
Ulrich Drepper ff886b82a2 * configure.in: Recognize --enable-nss-crypt.
* config.make.in: Add nss-crypt entry.
	* crypt/Makefile: If nss-crypt==yes, don't build md5.c, sha256.c,
	sha512.c.  Don't run md5test, sha256test, sha512test.  Pass -DUSE_NSS
	and include path for NSS directory to compiler for md5-crypt,
	sha256-crypt, sha512-crypt.  Link libcrypt.so with -lfreebl3.
	* crypt/md5-crypt.c: If USE_NSS is defined, don't use local hash
	function implementation, use NSS.  Introduce wrappers around the
	hash function calls.  Little code size optimization.
	* crypt/sha256-crypt.c: Likewise.
	* crypt/sha512-crypt.c: Likewise.
	* scripts/check-local-headers.sh: Ignore nss3 directory.

	* configure.in: Rename pic_default to libc_cv_pic_default.
	* config.make.in: Likewise.
2009-04-02 17:00:46 +00:00
Ulrich Drepper 425ce2edb9 * config.h.in (USE_MULTIARCH): Define.
* configure.in: Handle --enable-multi-arch.
	* elf/dl-runtime.c (_dl_fixup): Handle STT_GNU_IFUNC.
	(_dl_fixup_profile): Likewise.
	* elf/do-lookup.c (dl_lookup_x): Likewise.
	* sysdeps/x86_64/dl-machine.h: Handle STT_GNU_IFUNC.
	* elf/elf.h (STT_GNU_IFUNC): Define.
	* include/libc-symbols.h (libc_ifunc): Define.
	* sysdeps/x86_64/cacheinfo.c: If USE_MULTIARCH is defined, use the
	framework in init-arch.h to get CPUID values.
	* sysdeps/x86_64/multiarch/Makefile: New file.
	* sysdeps/x86_64/multiarch/init-arch.c: New file.
	* sysdeps/x86_64/multiarch/init-arch.h: New file.
	* sysdeps/x86_64/multiarch/sched_cpucount.c: New file.

	* config.make.in (experimental-malloc): Define.
	* configure.in: Handle --enable-experimental-malloc.
	* malloc/Makefile: Handle experimental-malloc flag.
	* malloc/malloc.c: Implement PER_THREAD and ATOMIC_FASTBINS features.
	* malloc/arena.c: Likewise.
	* malloc/hooks.c: Likewise.
	* malloc/malloc.h: Define M_ARENA_TEST and M_ARENA_MAX.
2009-03-13 23:53:18 +00:00
Ulrich Drepper d6c9ebb777 Regenerated: autoconf configure.in 2008-11-26 23:09:12 +00:00
Roland McGrath 58a4b51ae0 * sysdeps/x86_64/configure: New file.
* configure.in: Add AC_SUBST(libc_cv_cpp_asm_debuginfo).
	* configure: Regenerated.
2008-11-11 09:50:20 +00:00
Roland McGrath 2cf9ad5752 2008-08-18 Roland McGrath <roland@redhat.com>
* configure.in (--with-cpu): Check compiler support for -march/-mcpu.
	* configure: Regenerated.
	* config.make.in (cflags-cpu): New substituted variable.
	(with-cpu): Variable removed.
	* Makeconfig (+cflags): Use $(cflags-cpu), not $(with-cpu).
2008-08-18 09:42:17 +00:00
Ulrich Drepper a40fbc8dca [BZ #5814]
2008-06-25  Ulrich Drepper  <drepper@redhat.com>
	[BZ #5814]
	* locales/fi_FI: Fix separator for hours, minutes, and seconds.
2008-06-25 19:33:49 +00:00
Ulrich Drepper 215a87451d [BZ #6428]
* configure.in: Don't use $CFLAGS when assembling, use $ASFLAGS.
2008-05-15 02:58:18 +00:00
Ulrich Drepper 22dca1ea77 * configure.in: Check for -fno-section-anchors in addition to
-fno-toplevel-reorder.
2008-04-11 17:53:44 +00:00