]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove ldd libc4 support
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 2 Aug 2022 14:29:22 +0000 (11:29 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 4 Aug 2022 13:03:45 +0000 (10:03 -0300)
The older libc versions are obsolete for over twenty years now.

13 files changed:
Makeconfig
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/csky/configure
sysdeps/unix/sysv/linux/csky/configure.ac
sysdeps/unix/sysv/linux/i386/Makefile
sysdeps/unix/sysv/linux/i386/configure
sysdeps/unix/sysv/linux/i386/configure.ac
sysdeps/unix/sysv/linux/ldd-rewrite.sed [deleted file]
sysdeps/unix/sysv/linux/lddlibc4.c [deleted file]
sysdeps/unix/sysv/linux/m68k/Makefile
sysdeps/unix/sysv/linux/m68k/configure
sysdeps/unix/sysv/linux/m68k/configure.ac
sysdeps/unix/sysv/linux/sparc/sparc32/Makefile

index ba70321af1d239edb7088ca12bc2ab28cb9684ad..e78cf220af4b6b7f27221eb8d8f6a1519246809c 100644 (file)
@@ -866,7 +866,7 @@ endif
 +extra-math-flags = $(if $(filter libm,$(in-module)),-fno-math-errno,-fmath-errno)
 
 # Use 64 bit time_t support for installed programs
-installed-modules = nonlib nscd lddlibc4 ldconfig locale_programs \
+installed-modules = nonlib nscd ldconfig locale_programs \
                    iconvprogs libnss_files libnss_compat libnss_db libnss_hesiod \
                    libutil libpcprofile libSegFault
 +extra-time-flags = $(if $(filter $(installed-modules),\
@@ -966,7 +966,7 @@ endif       # $(+cflags) == ""
 libio-include = -I$(..)libio
 
 # List of non-library modules that we build.
-built-modules = iconvprogs iconvdata ldconfig lddlibc4 libmemusage \
+built-modules = iconvprogs iconvdata ldconfig libmemusage \
                libSegFault libpcprofile librpcsvc locale-programs \
                memusagestat nonlib nscd extramodules libnldbl libsupport \
                testsuite testsuite-internal
index a139a1653207df96bb22a471031ed885a7dd633d..3f31c19e4a6d27fe9807ae4344b9816a16ea9942 100644 (file)
@@ -393,8 +393,6 @@ endif
 ifeq ($(subdir),elf)
 sysdep-rtld-routines += dl-brk dl-sbrk dl-getcwd dl-openat64 dl-opendir
 
-libof-lddlibc4 = lddlibc4
-
 others += pldd
 install-bin += pldd
 $(objpfx)pldd: $(objpfx)xmalloc.o
index 20dc0df8e6c88262890bb7975987518f79b17506..b36cee5b7b86f4ba6fde714f715c31db55c342ff 100644 (file)
@@ -2,4 +2,3 @@
  # Local configure fragment for sysdeps/unix/sysv/linux/csky
 
 arch_minimum_kernel=4.20.0
-ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
index 89448969d4a80fd0421431cbdd16769d0851a88e..efcd375cd25084f0af9f4a811a05685c530cb0b2 100644 (file)
@@ -2,4 +2,3 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 # Local configure fragment for sysdeps/unix/sysv/linux/csky
 
 arch_minimum_kernel=4.20.0
-ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
index 598e27dcdaee0fb34c19f7181ceccb83d11a44ea..f1f8c3f44cf1e879eb9cf06d827ecdc1be1c384a 100644 (file)
@@ -7,11 +7,6 @@ sysdep_routines += ioperm iopl vm86
 tests += tst-bz21269
 endif
 
-ifeq ($(subdir),elf)
-sysdep-others += lddlibc4
-install-bin += lddlibc4
-endif
-
 ifeq ($(subdir),io)
 sysdep_routines += libc-do-syscall libc-do-syscall-int80
 endif
index f119e62fc31903b36c14d44575e1edf1918c84b6..351d82355a98a8227a4d1418c0f7f698d058267f 100644 (file)
@@ -2,4 +2,3 @@
  # Local configure fragment for sysdeps/unix/sysv/linux/i386.
 
 libc_cv_gcc_unwind_find_fde=yes
-ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
index 64ab2cc2c8f9deec2f92501d92ba44875db504d5..61c04f2f49e540f5c50feec337b10abafb764aae 100644 (file)
@@ -2,4 +2,3 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 # Local configure fragment for sysdeps/unix/sysv/linux/i386.
 
 libc_cv_gcc_unwind_find_fde=yes
-ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
diff --git a/sysdeps/unix/sysv/linux/ldd-rewrite.sed b/sysdeps/unix/sysv/linux/ldd-rewrite.sed
deleted file mode 100644 (file)
index 1faa90f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/Maybe extra code for non-ELF binaries/a\
-  file=$1\
-  # Run the ldd stub.\
-  lddlibc4 "$file"\
-  # Test the result.\
-  if test $? -lt 3; then\
-    return 0;\
-  fi\
-  # In case of an error punt.
-/LD_TRACE_LOADED_OBJECTS=1/a\
diff --git a/sysdeps/unix/sysv/linux/lddlibc4.c b/sysdeps/unix/sysv/linux/lddlibc4.c
deleted file mode 100644 (file)
index 153d2ad..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Stub for ldd script to print Linux libc4 dependencies.
-   Copyright (C) 1998-2022 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, see
-   <https://www.gnu.org/licenses/>.  */
-
-/* This code is based on the `ldd' program code from the Linux ld.so
-   package.  */
-
-#include <a.out.h>
-#include <errno.h>
-#include <error.h>
-#include <libintl.h>
-#include <locale.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-/* Get libc version number.  */
-#include "../version.h"
-
-#define PACKAGE _libc_intl_domainname
-
-
-int
-main (int argc, char *argv[])
-{
-  const char *filename;
-  size_t filename_len;
-  struct exec exec;
-  char *buf;
-  FILE *fp;
-
-  /* Set locale via LC_ALL.  */
-  setlocale (LC_ALL, "");
-
-  /* Set the text message domain.  */
-  textdomain (PACKAGE);
-
-  /* We expect exactly one argument.  */
-  if (argc != 2)
-    return 1;
-
-  if (strcmp (argv[1], "--help") == 0)
-    {
-      printf (gettext ("Usage: lddlibc4 FILE\n\n"));
-      printf (gettext ("For bug reporting instructions, please see:\n\
-%s.\n"), REPORT_BUGS_TO);
-      return 0;
-    }
-  else if (strcmp (argv[1], "--version") == 0)
-    {
-      printf ("lddlibc4 %s%s\n", PKGVERSION, VERSION);
-      printf (gettext ("\
-Copyright (C) %s Free Software Foundation, Inc.\n\
-This is free software; see the source for copying conditions.  There is NO\n\
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
-"), "2022");
-      return 0;
-    }
-
-  filename = argv[1];
-
-  /* First see whether this is really an a.out binary.  */
-  fp = fopen (filename, "rb");
-  if (fp == NULL)
-    error (2, errno, gettext ("cannot open `%s'"), filename);
-
-  /* Read the program header.  */
-  if (fread (&exec, sizeof exec, 1, fp) < 1)
-    error (2, errno, gettext ("cannot read header from `%s'"), filename);
-
-  /* Test for the magic numbers.  */
-  if (N_MAGIC (exec) != ZMAGIC && N_MAGIC (exec) != QMAGIC
-      && N_MAGIC (exec) != OMAGIC)
-    exit (3);
-
-  /* We don't need the file open anymore.  */
-  fclose (fp);
-
-  /* We must put `__LDD_ARGV0=<program-name>' in the environment.  */
-  filename_len = strlen (filename);
-  buf = (char *) alloca (sizeof "__LDD_ARGV0=" + filename_len);
-  mempcpy (mempcpy (buf, "__LDD_ARGV0=", sizeof "__LDD_ARGV0=" - 1),
-          filename, filename_len + 1);
-  /* ...and put the value in the environment.  */
-  putenv (buf);
-
-  /* Now we can execute the binary.  */
-  return execv (filename, &argv[argc]) ? 4 : 0;
-}
index 18ad2bf0eeec9e096024c2ed46ad63cc2b7f9ed4..6640cb4a285c2f98f04294078805057948d03c37 100644 (file)
@@ -15,8 +15,3 @@ ifeq ($(subdir),misc)
 sysdep_routines += mremap
 sysdep_headers += sys/reg.h
 endif
-
-ifeq ($(subdir),elf)
-sysdep-others += lddlibc4
-install-bin += lddlibc4
-endif
index 8e955387b784d78d5089b25eab4cf9e7ca61df30..aa295f80cbf262acc56a3ef730cf291a45355571 100644 (file)
@@ -6,4 +6,3 @@ m68k/coldfire)
   libc_cv_gcc_unwind_find_fde=yes
   ;;
 esac
-ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
index c21ca9dd478a4e926f5449418f4896ca0bf091d9..0e547f2f2ecd8c302b7af90aa072a1f2e786de00 100644 (file)
@@ -7,4 +7,3 @@ m68k/coldfire)
   libc_cv_gcc_unwind_find_fde=yes
   ;;
 esac
-ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
index 21c7dc1680caf19cb21a36ade3cb4baaee188159..167307cc78a95e86fa6f06ead1feb906980d361b 100644 (file)
@@ -13,8 +13,6 @@ endif
 ifeq ($(subdir),elf)
 CFLAGS-rtld.c += -mcpu=v8
 #rtld-routines += dl-sysdepsparc
-sysdep-others += lddlibc4
-install-bin += lddlibc4
 endif   # elf
 
 ifeq ($(subdir),math)