1 --- glibc-2.3.2/csu/Makefile.old 2004-04-25 20:56:43.000000000 -0400
2 +++ glibc-2.3.2/csu/Makefile 2004-04-25 20:57:15.000000000 -0400
4 $(crtstuff:%=$(objpfx)%.o): %.o: %.S $(objpfx)defs.h
5 $(compile.S) -g0 $(ASFLAGS-.os) -o $@
7 -CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions
8 +CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions $(fno-unit-at-a-time)
10 vpath initfini.c $(full_config_sysdirs)
12 --- glibc-2.3.2/linuxthreads/Makefile.old 2004-04-25 21:37:45.000000000 -0400
13 +++ glibc-2.3.2/linuxthreads/Makefile 2004-04-25 21:38:03.000000000 -0400
16 $(objpfx)pt-initfini.s: pt-initfini.c
17 $(compile.c) -S $(CFLAGS-pt-initfini.s) -finhibit-size-directive \
18 + $(fno-unit-at-a-time) \
19 $(patsubst -f%,-fno-%,$(exceptions)) -o $@
21 # We only have one kind of startup code files. Static binaries and
22 --- glibc-2.3.2/configure.in.old 2004-04-25 20:10:45.000000000 -0400
23 +++ glibc-2.3.2/configure.in 2004-04-25 20:52:41.000000000 -0400
24 @@ -1371,6 +1371,23 @@
26 AC_SUBST(libc_cv_z_combreloc)
28 +AC_CACHE_CHECK(for -fno-unit-at-a-time, libc_cv_fno_unit_at_a_time, [dnl
29 +cat > conftest.c <<EOF
32 +if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
33 + conftest.c 1>&AS_MESSAGE_LOG_FD])
35 + libc_cv_fno_unit_at_a_time=yes
37 + libc_cv_fno_unit_at_a_time=no
40 +if test $libc_cv_fno_unit_at_a_time = yes; then
41 + fno_unit_at_a_time=-fno-unit-at-a-time
43 +AC_SUBST(fno_unit_at_a_time)
45 if test $elf != yes; then
46 AC_CACHE_CHECK(for .init and .fini sections, libc_cv_have_initfini,
47 [AC_TRY_COMPILE(, [asm (".section .init");
48 --- glibc-2.3.2/configure.old 2004-04-25 20:54:28.000000000 -0400
49 +++ glibc-2.3.2/configure 2004-04-25 20:56:31.000000000 -0400
54 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS with_fp with_cvs enable_check_abi oldest_abi subdirs force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF CCVERSION SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO OLD_DEBIAN_INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_Bgroup ASFLAGS_config libc_cv_z_combreloc libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir libc_cv_forced_unwind use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
55 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS with_fp with_cvs enable_check_abi oldest_abi subdirs force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF CCVERSION SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO OLD_DEBIAN_INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_Bgroup ASFLAGS_config libc_cv_z_combreloc fno_unit_at_a_time libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir libc_cv_forced_unwind use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
58 # Initialize some variables set by options.
59 @@ -5306,6 +5306,35 @@
63 +echo "$as_me:$LINENO: checking for -fno-unit-at-a-time" >&5
64 +echo $ECHO_N "checking for -fno-unit-at-a-time... $ECHO_C" >&6
65 +if test "${libc_cv_fno_unit_at_a_time+set}" = set; then
66 + echo $ECHO_N "(cached) $ECHO_C" >&6
68 + cat > conftest.c <<EOF
71 +if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
73 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
76 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
77 + (exit $ac_status); }; }
79 + libc_cv_fno_unit_at_a_time=yes
81 + libc_cv_fno_unit_at_a_time=no
85 +echo "$as_me:$LINENO: result: $libc_cv_fno_unit_at_a_time" >&5
86 +echo "${ECHO_T}$libc_cv_fno_unit_at_a_time" >&6
87 +if test $libc_cv_fno_unit_at_a_time = yes; then
88 + fno_unit_at_a_time=-fno-unit-at-a-time
92 if test $elf != yes; then
93 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
94 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
96 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
97 s,@ASFLAGS_config@,$ASFLAGS_config,;t t
98 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
99 +s,@fno_unit_at_a_time@,$fno_unit_at_a_time,;t t
100 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
101 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
102 s,@no_whole_archive@,$no_whole_archive,;t t
103 --- glibc-2.3.2/config.make.in.old 2004-04-25 20:10:33.000000000 -0400
104 +++ glibc-2.3.2/config.make.in 2004-04-25 20:53:20.000000000 -0400
106 have-cpp-asm-debuginfo = @libc_cv_cpp_asm_debuginfo@
107 enable-check-abi = @enable_check_abi@
108 have-forced-unwind = @libc_cv_forced_unwind@
109 +fno-unit-at-a-time = @fno_unit_at_a_time@
111 static-libgcc = @libc_cv_gcc_static_libgcc@