]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Mar 2003 19:08:31 +0000 (19:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Mar 2003 19:08:31 +0000 (19:08 +0000)
* elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
byte filebuf size.

ChangeLog
elf/dl-load.c

index fd2c88f9c717b21e2054cad1d4c31111e05eeaf3..6945433eaf56833516be7b25c7d2e715c0e615f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
 
+       * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
+       byte filebuf size.
+
        * libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
        if ccs parameter isn't valid.  Reported by Andreas Schwab.
 
index 71a2ded8320726f5b9145903a39adf763a139bbf..4559c08c05bd11c62c00a3e462e19fc180a22d1a 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <ldsodefs.h>
+#include <bits/wordsize.h>
 #include <sys/mman.h>
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -109,6 +110,11 @@ ELF_PREFERRED_ADDRESS_DATA;
 struct filebuf
 {
   ssize_t len;
+#ifdef __WORDSIZE == 32
+# define FILEBUF_SIZE 512
+#else
+# define FILEBUF_SIZE 640
+#endif
   char buf[512] __attribute__ ((aligned (__alignof (ElfW(Ehdr)))));
 };