]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use _dl_fatal_printf instead of a private variant.
authorRoland McGrath <roland@hack.frob.com>
Fri, 11 May 2012 18:41:35 +0000 (11:41 -0700)
committerRoland McGrath <roland@hack.frob.com>
Mon, 14 May 2012 23:10:12 +0000 (16:10 -0700)
ChangeLog
elf/rtld.c
sysdeps/unix/sysv/linux/dl-osinfo.h

index e2de309c95c1ccc24f611cdd455dd857d9c12484..35bf7361c9369ffdb6e1e1869a0e85b85c6f75b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-14  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
+       * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
+       Use _dl_fatal_printf instead.
+
 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
index 88a340d1ee544a3ede49c03d1654f3d28b706434..a5b0ab9815f3161fab83b0da5db89d302a6a7bad 100644 (file)
@@ -1432,7 +1432,7 @@ of this helper program; chances are you did not intend to run this program.\n\
 #endif
 
 #ifdef DL_SYSDEP_OSCHECK
-  DL_SYSDEP_OSCHECK (dl_fatal);
+  DL_SYSDEP_OSCHECK (_dl_fatal_printf);
 #endif
 
   /* Initialize the data structures for the search paths for shared
index d0f41a7b2c0c68cae64dc5bc76d27b1a5e654e58..82d6e22ae92fc2097b14cb4e62daf90413eefda7 100644 (file)
@@ -1,5 +1,5 @@
 /* Operating system specific code for generic dynamic loader functions.  Linux.
-   Copyright (C) 2000-2002,2004-2009,2011 Free Software Foundation, Inc.
+   Copyright (C) 2000-2012 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
 # define MIN(a,b) (((a)<(b))?(a):(b))
 #endif
 
-#ifdef SHARED
-/* This is the function used in the dynamic linker to print the fatal error
-   message.  */
-static void
-__attribute__ ((__noreturn__))
-dl_fatal (const char *str)
-{
-  _dl_dprintf (2, str);
-  _exit (1);
-}
-#endif
-
 #define DL_SYSDEP_OSCHECK(FATAL)                                             \
   do {                                                                       \
     /* Test whether the kernel is new enough.  This test is only performed    \