diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-06-01 11:39:24 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-01 11:39:24 -0700 |
commit | b7629ee33f164b07afd36cccf5f18f693d600251 (patch) | |
tree | 5dc25b58ce0da8f3e1c04ad1328396401a026832 | |
parent | b8706f70723b63d54cdeac0362b5db69db0459e2 (diff) | |
download | glibc-b7629ee33f164b07afd36cccf5f18f693d600251.tar.gz glibc-b7629ee33f164b07afd36cccf5f18f693d600251.tar.xz glibc-b7629ee33f164b07afd36cccf5f18f693d600251.zip |
Better error message for invalid relocatio in static binary.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sysdeps/i386/dl-irel.h | 3 | ||||
-rw-r--r-- | sysdeps/x86_64/dl-irel.h | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 6355577d8e..10829a3d21 100644 --- 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 diff --git a/sysdeps/i386/dl-irel.h b/sysdeps/i386/dl-irel.h index 4acb862c69..810a35050b 100644 --- a/sysdeps/i386/dl-irel.h +++ b/sysdeps/i386/dl-irel.h @@ -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 */ 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 */ |