diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-09-05 03:42:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-09-05 03:42:43 +0000 |
commit | 407fe3bbb3708abc6796acc71c5fe34371c2847c (patch) | |
tree | 918b347c952d9d399789d21394b991bd42916977 /elf/dl-reloc.c | |
parent | 71ce28fd1abbccc9814d199d770e673135a33ee1 (diff) | |
download | glibc-407fe3bbb3708abc6796acc71c5fe34371c2847c.zip glibc-407fe3bbb3708abc6796acc71c5fe34371c2847c.tar.gz glibc-407fe3bbb3708abc6796acc71c5fe34371c2847c.tar.bz2 |
Update.
2001-09-04 Ulrich Drepper <drepper@redhat.com>
Correct very misleading message for error in failed runtime relocation.
* elf/dl-error.c (_dl_signal_error): Take extra parameter to describe
place of the error.
(_dl_signal_cerror): Likewise.
* sysdeps/generic/ldsodefs.h: Adjust prototypes.
* elf/dl-close.c: Likewise.
* elf/dl-deps.c: Likewise.
* elf/dl-load.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dl-reloc.c: Likewise.
* elf/dl-sym.c: Likewise.
* elf/dl-version.c: Likewise.
* sysdeps/generic/dl-sysdep.c: Likewise.
Diffstat (limited to 'elf/dl-reloc.c')
-rw-r--r-- | elf/dl-reloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c index 6e38648..931c9f4 100644 --- a/elf/dl-reloc.c +++ b/elf/dl-reloc.c @@ -63,7 +63,7 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[], & ~(_dl_pagesize - 1))); if (__builtin_expect (__mprotect (mapstart, mapend - mapstart, PROT_READ|PROT_WRITE), 0) < 0) - _dl_signal_error (errno, l->l_name, N_("\ + _dl_signal_error (errno, l->l_name, NULL, N_("\ cannot make segment writable for relocation")); } } @@ -177,7 +177,7 @@ cannot make segment writable for relocation")); if (__builtin_expect (__mprotect (mapstart, mapend - mapstart, prot), 0) < 0) - _dl_signal_error (errno, l->l_name, + _dl_signal_error (errno, l->l_name, NULL, N_("can't restore segment prot after reloc")); #ifdef CLEAR_CACHE @@ -201,7 +201,7 @@ _dl_reloc_bad_type (struct link_map *map, uint_fast8_t type, int plt) static char msg[] = "unexpected PLT reloc type 0x??"; msg[sizeof msg - 3] = DIGIT(type >> 4); msg[sizeof msg - 2] = DIGIT(type); - _dl_signal_error (0, map->l_name, msg); + _dl_signal_error (0, map->l_name, NULL, msg); } else { @@ -209,6 +209,6 @@ _dl_reloc_bad_type (struct link_map *map, uint_fast8_t type, int plt) static char msg[] = "unexpected reloc type 0x??"; msg[sizeof msg - 3] = DIGIT(type >> 4); msg[sizeof msg - 2] = DIGIT(type); - _dl_signal_error (0, map->l_name, msg); + _dl_signal_error (0, map->l_name, NULL, msg); } } |