about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--elf/dl-load.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fd7ddf4549..b0ddc50a45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1999-08-13  Ulrich Drepper  <drepper@cygnus.com>
+
+	* po/fr.po: Update.
+
 1999-08-11  Thorsten Kukuk  <kukuk@suse.de>
 
 	* nis/nis_callback.c (internal_nis_do_callback): Free my_pollfd.
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 2f3e878e7a..eb3c41577a 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -744,8 +744,8 @@ _dl_map_object_from_fd (const char *name, int fd, char *realname,
   header = (void *) readbuf;
 
   /* Check the header for basic validity.  */
-  if (__builtin_expect (VALID_ELF_HEADER (header->e_ident, expected, EI_PAD),
-			0) != 0)
+  if (__builtin_expect (!VALID_ELF_HEADER (header->e_ident, expected, EI_PAD),
+			0))
     {
       /* Something is wrong.  */
       if (*(Elf32_Word *) &header->e_ident !=