]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Better error message for invalid relocatio in static binary.
authorUlrich Drepper <drepper@redhat.com>
Mon, 1 Jun 2009 18:39:24 +0000 (11:39 -0700)
committerUlrich Drepper <drepper@redhat.com>
Mon, 1 Jun 2009 18:39:24 +0000 (11:39 -0700)
ChangeLog
sysdeps/i386/dl-irel.h
sysdeps/x86_64/dl-irel.h

index 6355577d8ea0f32698ec8045ef0da7e675ce22f8..10829a3d2100de1b22506862562742526fa7ee30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-01  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/i386/dl-irel.h (elf_irel): Use __libc_fatal instead of just
+       _exit.
+       * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
+
 2009-05-31  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/x86_64/multiarch/sched_cpucount.c: Also use optimized code
index 4acb862c69bb6e4815409a088e035a130c5def76..810a35050b9abb6d6f4e7b95a4f65eac9fbdec5d 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef _DL_IREL_H
 #define _DL_IREL_H
 
+#include <stdio.h>
 #include <unistd.h>
 
 #define ELF_MACHINE_IREL       1
@@ -38,7 +39,7 @@ elf_irel (const Elf32_Rel *reloc)
       *reloc_addr = value;
     }
   else
-    _exit (-1);
+    __libc_fatal ("unexpected reloc type in static binary");
 }
 
 #endif /* dl-irel.h */
index 442ab71d26c7a23c774bc3a595c107cc5c5161ff..d2d5c0670ef769870c53d05b4b93ebb169b4e7b0 100644 (file)
@@ -21,6 +21,7 @@
 #ifndef _DL_IREL_H
 #define _DL_IREL_H
 
+#include <stdio.h>
 #include <unistd.h>
 
 #define ELF_MACHINE_IRELA      1
@@ -38,7 +39,7 @@ elf_irela (const Elf64_Rela *reloc)
       *reloc_addr = value;
     }
   else
-    _exit (-1);
+    __libc_fatal ("unexpected reloc type in static binary");
 }
 
 #endif /* dl-irel.h */