summary refs log tree commit diff
path: root/sysdeps/x86_64/dl-irel.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-06-01 11:39:24 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-01 11:39:24 -0700
commitb7629ee33f164b07afd36cccf5f18f693d600251 (patch)
tree5dc25b58ce0da8f3e1c04ad1328396401a026832 /sysdeps/x86_64/dl-irel.h
parentb8706f70723b63d54cdeac0362b5db69db0459e2 (diff)
downloadglibc-b7629ee33f164b07afd36cccf5f18f693d600251.tar.gz
glibc-b7629ee33f164b07afd36cccf5f18f693d600251.tar.xz
glibc-b7629ee33f164b07afd36cccf5f18f693d600251.zip
Better error message for invalid relocatio in static binary.
Diffstat (limited to 'sysdeps/x86_64/dl-irel.h')
-rw-r--r--sysdeps/x86_64/dl-irel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dl-irel.h b/sysdeps/x86_64/dl-irel.h
index 442ab71d26..d2d5c0670e 100644
--- a/sysdeps/x86_64/dl-irel.h
+++ b/sysdeps/x86_64/dl-irel.h
@@ -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 */