This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Felipe Contreras <al593181@mail.mty.itesm.mx>] bug in useldt.h


Greg Schafer <gschafer@zip.com.au> writes:

> Andreas Jaeger wrote:
>> Something like this?  Felipe - and others with this problem -, please
>> regenerate configure (with autoconf 2.13!) and tell me whether it
>> looks fine in your environment.
>> 
>> Ok to commit?
>
> Hi Andreas
>
> I just gave this a quick test.
>
> It fixes the first 3 linker tests but breaks the 4th ie: now it doesn't
> find -z combreloc (even in the normal case when glibc is already installed)
> and I cannot see why. No clues in config.log either.

With -nostdlib we get no rel.dyn sections and we explicitly search for
them.  Jakub, is the readelf call really needed?

Uli, ok to commit the following patch - it doesn't change combreloc.

Andreas

============================================================
Index: configure.in
--- configure.in	2001/12/06 09:17:24	1.328
+++ configure.in	2001/12/12 08:42:02
@@ -999,7 +999,9 @@ EOF
   cat > conftest.c <<EOF
 int _start (void) { return 42; }
 EOF
-  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&AC_FD_CC])
+  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
+		     -nostartfiles -nostdlib
+		     -Wl,--enable-new-dtags,-z,nodelete 1>&AC_FD_CC])
   then
     libc_cv_z_nodelete=yes
   else
@@ -1013,7 +1015,9 @@ EOF
   cat > conftest.c <<EOF
 int _start (void) { return 42; }
 EOF
-  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&AC_FD_CC])
+  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
+			-nostartfiles -nostdlib
+			-Wl,--enable-new-dtags,-z,nodlopen 1>&AC_FD_CC])
   then
     libc_cv_z_nodlopen=yes
   else
@@ -1027,7 +1031,9 @@ EOF
   cat > conftest.c <<EOF
 int _start (void) { return 42; }
 EOF
-  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,initfirst 1>&AC_FD_CC])
+  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
+			-nostartfiles -nostdlib
+			-Wl,--enable-new-dtags,-z,initfirst 1>&AC_FD_CC])
   then
     libc_cv_z_initfirst=yes
   else
@@ -1055,7 +1061,8 @@ EOF
   cat > conftest.c <<EOF
 int foo (void) { return 0; }
 EOF
-  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,-z,combreloc 1>&AC_FD_CC])
+  if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
+			-Wl,-z,combreloc 1>&AC_FD_CC])
   then
 dnl The following test is a bit weak.  We must use a tool which can test
 dnl cross-platform since the gcc used can be a cross compiler.  Without

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]